WordPress.org

Make WordPress Core

Ticket #17677: 2011.diff

File 2011.diff, 961 bytes (added by greuben, 3 years ago)
  • wp-content/themes/twentyeleven/inc/theme-options.php

     
    9999                        '<p>' . __( '<a href="http://codex.wordpress.org/Appearance_Theme_Options_Screen" target="_blank">Documentation on Theme Options</a>' ) . '</p>' . 
    100100                        '<p>' . __( '<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>' ) . '</p>'; 
    101101 
    102         add_contextual_help( $theme_page, $help ); 
     102        if ( $theme_page ) 
     103                add_contextual_help( $theme_page, $help ); 
    103104} 
    104105add_action( 'admin_menu', 'twentyeleven_theme_options_add_page' ); 
    105106 
     
    370371 
    371372        return array_merge( $existing_classes, $classes ); 
    372373} 
    373 add_filter( 'body_class', 'twentyeleven_layout_classes' ); 
    374  No newline at end of file 
     374add_filter( 'body_class', 'twentyeleven_layout_classes' );