[wp-trac] [WordPress Trac] #22246: PHP Notice On _remove_theme_support() function

WordPress Trac noreply at wordpress.org
Sun Oct 21 20:30:21 UTC 2012


#22246: PHP Notice On _remove_theme_support() function
-----------------------------+--------------------------
 Reporter:  alex-ye          |       Type:  defect (bug)
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  Themes
  Version:  3.4.2            |   Severity:  normal
 Keywords:  needs-patch      |
-----------------------------+--------------------------
 Hi Guys , I just found this PHP Notice on _remove_theme_support() function
 , Tested On :

 1 - WordPress 3.5 Beta 2[[BR]]

 2 - PHP 5.4

 To get this notice on just add child theme to TwentyTwelve and add this
 simple code on functions.php :


 {{{
 add_action ( 'after_setup_theme', 'Nash_setup' , 11 );

 function Nash_setup() {

     remove_theme_support ( 'custom-background' );
     remove_theme_support ( 'custom-header' );

 } // end Nash_setup()
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22246>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list