Make screen options a help tab. Move screen option functions into WP_Screen. see #18690, #18785.

git-svn-id: https://develop.svn.wordpress.org/trunk@18853 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Daryl Koopersmith
2011-10-01 00:24:44 +00:00
parent 1aad45debc
commit a5acbaa574
9 changed files with 412 additions and 298 deletions
+7 -2
View File
@@ -897,9 +897,14 @@ class WP_List_Table {
* @access private
*/
function _js_vars() {
$current_screen = get_current_screen();
$args = array(
'class' => get_class( $this ),
'screen' => get_current_screen()
'class' => get_class( $this ),
'screen' => array(
'id' => $current_screen->id,
'base' => $current_screen->base,
)
);
printf( "<script type='text/javascript'>list_args = %s;</script>\n", json_encode( $args ) );