[wp-trac] [WordPress Trac] #31374: Missed "if ( ! function_exists(" around function twentyfourteen_post_thumbnail

WordPress Trac noreply at wordpress.org
Thu Feb 19 01:05:11 UTC 2015


#31374: Missed "if ( ! function_exists(" around function
twentyfourteen_post_thumbnail
----------------------------+-----------------------------
 Reporter:  WordPressor.ru  |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Bundled Theme   |    Version:  4.1
 Severity:  normal          |   Keywords:
  Focuses:  template        |
----------------------------+-----------------------------
 Hi all, this is my first.

 In file wp-content/themes/twentyfourteen/inc/template-tags.php, there is
 missed "if ( ! function_exists(" around function
 twentyfourteen_post_thumbnail. So I can't redefine this function in my
 child theme.

 I'm using WP 4.1, Twentyfourteen theme 1.3.

 See my diff, hope i made it right.

 Also, there are same construction missing around function
 twentyfourteen_categorized_blog in same template-tag.php.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31374>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list