Opened 13 years ago
Closed 13 years ago
#13908 closed defect (bug) (invalid)
Undefined function twentyten_the_page_number() when using twentyten as parent of child theme
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.0 |
Component: | Themes | Keywords: | twentyten, child themes |
Focuses: | Cc: |
Description
Honestly, this bug has come and gone once and is now back (and won't go away), so it might be a path issue on my web host if I'm the only person in the world getting this, but just to be safe, I'm reporting it. I'm fairly certain it's not a problem with the child theme.
I have a very simple child theme consisting of a style.css and a header.php (which was copied from twentyten's header and moved around some elements).
Out of the blue, I've gotten this error twice:
Fatal error: Call to undefined function twentyten_the_page_number() in /homepages/38/d151202375/htdocs/pixoox/wp-content/themes/audacity/header.php on line 24
Here is the top of my child's style.css (which was originally copied from twentyten as well):
/*
Theme Name: Audacity
Theme URI: http://smashly.net/themes/audactiy
Description: Audacity, a Child theme of Twenty Ten
Author: Byron Bennett
Author URI: http://www.whypad.com/
Template: twentyten
Version: 0.1.0
Tags: black, blue, white, two-columns, fixed-width, custom-header, custom-background, threaded-comments, sticky-post, translation-ready, microformats, rtl-language-support, editor-style
*/
I thought that the parent's function.php would be loaded before the child's header.php, which is why I don't see how this error is happening. I don't have a function.php in my child them.
My setup is:
Installed: WordPress 3.0-RC3-15257
Linux, PHP5, 1and1.com shared hosting server
No plugins activated
I'll attach my child theme. As mentioned, this comes and goes, so I'm not sure how to reproduce.
This function was recently removed from twentyten so as to improve the theme:
http://core.trac.wordpress.org/ticket/13751
So it doesn't exist anymore
You need to update your header.php based on the current one in twentyten