mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-07 08:07:16 +00:00
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:
@@ -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 ) );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user