WordPress.org

Make WordPress Core

Changeset 18135


Ignore:
Timestamp:
06/03/11 22:37:13 (3 years ago)
Author:
ryan
Message:

Check result of add_theme_page(). Return if false. Props greuben. fixes #17677

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyeleven/inc/theme-options.php

    r18123 r18135  
    8989        'theme_options_render_page'            // Function that renders the options page 
    9090    ); 
     91 
     92    if ( ! $theme_page ) 
     93        return; 
     94 
    9195    $help = '<p>' . __( 'Some themes provide customization options that are grouped together on a Theme Options screen. If you change themes, options may change or disappear, as they are theme-specific. Your current theme, Twenty Eleven, provides the following Theme Options:' ) . '</p>' . 
    9296            '<ol>' . 
Note: See TracChangeset for help on using the changeset viewer.