Make WordPress Core


Ignore:
Timestamp:
10/02/2011 06:59:36 AM (14 years ago)
Author:
azaozz
Message:

Add screen_options with contextual content, see #18690

File:
1 edited

Legend:

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

    r18222 r18864  
    148148
    149149$title = $post_type_object->labels->name;
     150
     151add_screen_option( 'per_page', array('label' => $title, 'default' => 20) );
     152
     153$current_screen->add_screen_options(
     154'<p>test</p>'
     155);
    150156
    151157if ( 'post' == $post_type ) {
     
    181187}
    182188
    183 add_screen_option( 'per_page', array('label' => $title, 'default' => 20) );
    184 
    185189require_once('./admin-header.php');
    186190?>
Note: See TracChangeset for help on using the changeset viewer.