Make WordPress Core

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#15137 closed defect (bug) (invalid)

Wordpress 3.0.1, Twentyten Theme, functions.php is incomplete

Reported by: sunny_balanga Owned by:
Milestone: Priority: normal
Severity: trivial Version: 3.0.1
Component: General Keywords:
Focuses: Cc:


Function "twentyten_filter_wp_title" is missing from functions.php of twentyten theme, supplied with Wordpress 3.0.1.

My page didn't show a tilte, so I looked in header.php which calls wp_title with explanation "..see * twentyten_filter_wp_title() in functions.php.. *, so I looked in functions.php and realized this particular function was missing.

I found the function in the functions.php of twentyten theme supplied with WP 3.0, so I copied it over and added a "?>" at the end and it works, kind of:

The "site name" portion of the page title appeared twice. I commented out the last statement "add_filter( 'wp_title', 'twentyten_filter_wp_title', 10, 2 );" and now the page title displays correctly.

I hope this helps, feel free to contact me if needed.

Change History (2)

#1 @sunny_balanga
11 years ago

  • Resolution set to invalid
  • Severity changed from normal to trivial
  • Status changed from new to closed

I just realized that the reason function "twentyten_filter_wp_title" is no longer in functions.php is because it has been incorporated directly into header.php in version 3.0.01.

I use a child theme and "my" header.php was based on the one from version 3.0, which is why the page-title suddenly stopped showing up.

I was under the impression that using a child theme meant I could update the parent theme without worries, but such is not the case!

I have now updated my child theme's header.php to perform correctly with the updated twentyten parent and all is well.

I will definitely be more careful about updating the twentyten parent theme in the future.

In any case, thanks for taking a look at this.

#2 @nacin
11 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.