Partially revert [20100]. The list_args JS variable cannot be extended due to its use as an argument in fetch-list. see #19815.

We should reattempt extending the args created in WP_List_Table, but will need to deprecate the current list_args to do so.

Also, infinite scroll on themes pages is no longer broken. Go team.

git-svn-id: https://develop.svn.wordpress.org/trunk@20104 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Daryl Koopersmith
2012-03-03 02:40:43 +00:00
parent ba75fc6e7d
commit 90a115e4b4
2 changed files with 8 additions and 10 deletions
+1 -4
View File
@@ -903,7 +903,7 @@ class WP_List_Table {
*
* @access private
*/
function _js_vars( $extra_args = array() ) {
function _js_vars() {
$current_screen = get_current_screen();
$args = array(
@@ -914,9 +914,6 @@ class WP_List_Table {
)
);
if ( is_array( $extra_args ) )
$args = array_merge( $args, $extra_args );
printf( "<script type='text/javascript'>list_args = %s;</script>\n", json_encode( $args ) );
}
}