[wp-trac] [WordPress Trac] #36529: Bug in get_permalink()

WordPress Trac noreply at wordpress.org
Thu Apr 21 15:44:59 UTC 2016


#36529: Bug in get_permalink()
----------------------------------------+------------------
 Reporter:  dav4                        |       Owner:
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  4.6
Component:  Permalinks                  |     Version:  4.5
 Severity:  normal                      |  Resolution:
 Keywords:  good-first-bug needs-patch  |     Focuses:
----------------------------------------+------------------

Comment (by Presskopp):

 I think it's not neccessary to change/fix all of these, but that's beyond
 my scope. May this list just be helpful.


 \wp-includes\category-template.php
 Line 1227:
 {{{#!php
                 $link = get_term_link( $term, $taxonomy );
                 if ( is_wp_error( $link ) ) {

 }}}

 \wp-includes\category-template.php
 Line 45:
 {{{#!php
         $parent = get_term( $id, 'category' );
         if ( is_wp_error( $parent ) )

 }}}

 Line 151:
 {{{#!php
         $category = get_term( $cat_ID, 'category' );

         if ( is_wp_error( $category ) )

 }}}

 \wp-includes\category.php
 Line 91:
 {{{#!php
         $category = get_term( $category, 'category', $output, $filter );

         if ( is_wp_error( $category ) )
 }}}

 Line 204:
 {{{#!php
         $category = get_term( $cat_id, 'category' );
         if ( ! $category || is_wp_error( $category ) )
 }}}

 \wp-includes\class-wp-xmlrpc-server.php
 Line 1894:
 {{{#!php
                         $parent_term = get_term( $parent_term_id ,
 $taxonomy['name'] );

                         if ( is_wp_error( $parent_term ) )

 }}}

 Line 1972:
 {{{#!php
                 $term = get_term( $term_id , $content_struct['taxonomy']
 );

                 if ( is_wp_error( $term ) )

 }}}

 Line 1992:
 {{{#!php
                         $parent_term = get_term( $parent_term_id ,
 $taxonomy['name'] );

                         if ( is_wp_error( $parent_term ) )

 }}}

 Line 2063:
 {{{#!php
                 $term = get_term( $term_id, $taxonomy->name );

                 if ( is_wp_error( $term ) )

 }}}

 Line 2134:
 {{{#!php
                 $term = get_term( $term_id , $taxonomy->name, ARRAY_A );

                 if ( is_wp_error( $term ) )

 }}}

 \wp-includes\taxonomy.php
 Line 948:
 {{{#!php
                 $term = get_term( (int) $value, $taxonomy, $output,
 $filter );
                 if ( is_wp_error( $term ) || is_null( $term ) ) {

 }}}

 Line 1025:
 {{{#!php
         $term = get_term( $term, $taxonomy );
         if ( is_wp_error($term) )

 }}}

 Line 1051:
 {{{#!php
         $term = get_term( $id, $taxonomy );

         if ( is_wp_error($term) )

 }}}

 Line 2308:
 {{{#!php
                 $term_obj = get_term($term, $taxonomy);
                 if ( is_wp_error( $term_obj ) )

 }}}

 Line 3928:
 {{{#!php
                         $term = get_term($term, $taxonomy);
                         if ( is_wp_error( $term ) )

 }}}

 Line 4854:
 {{{#!php
         $term = get_term( $term_id, $taxonomy );
         if ( ! $term || is_wp_error( $term ) ) {

 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36529#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list