Make WordPress Core


Ignore:
Timestamp:
10/03/2011 04:00:57 AM (14 years ago)
Author:
azaozz
Message:

Use add_option() method, introduce add_option_context() method for adding specific text above the screen options, see #18690

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-comments.php

    r18864 r18867  
    110110    $title = __('Comments');
    111111
    112 add_screen_option( 'per_page', array('label' => _x( 'Comments', 'comments per page (screen options)' )) );
    113 
    114 $current_screen->add_screen_options(
    115 '<p>test</p>'
    116 );
     112$current_screen->add_option( 'per_page', array('label' => _x( 'Comments', 'comments per page (screen options)' )) );
     113$current_screen->add_option_context( '<p>test</p>' );
    117114
    118115add_contextual_help( $current_screen, '<p>' . __( 'You can manage comments made on your site similar to the way you manage Posts and other content. This screen is customizable in the same ways as other management screens, and you can act on comments using the on-hover action links or the Bulk Actions.' ) . '</p>' .
Note: See TracChangeset for help on using the changeset viewer.