| 1 | Index: wp-admin/includes/template.php |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- wp-admin/includes/template.php (revision 11553) |
|---|
| 4 | +++ wp-admin/includes/template.php (working copy) |
|---|
| 5 | @@ -3424,7 +3424,8 @@ |
|---|
| 6 | $show_on_screen = true; |
|---|
| 7 | } |
|---|
| 8 | |
|---|
| 9 | - $screen_options = screen_options($screen); |
|---|
| 10 | + add_filter('screen_options', 'screen_options', 1, 2); |
|---|
| 11 | + $screen_options = apply_filters('screen_options', false, $screen); |
|---|
| 12 | if ( $screen_options ) |
|---|
| 13 | $show_screen = true; |
|---|
| 14 | |
|---|
| 15 | @@ -3626,7 +3627,7 @@ |
|---|
| 16 | return $return; |
|---|
| 17 | } |
|---|
| 18 | |
|---|
| 19 | -function screen_options($screen) { |
|---|
| 20 | +function screen_options($return, $screen) { |
|---|
| 21 | switch ( $screen ) { |
|---|
| 22 | case 'edit': |
|---|
| 23 | $per_page_label = __('Posts per page:'); |
|---|