Changeset 20100
- Timestamp:
- 03/02/2012 11:06:31 PM (13 years ago)
- Location:
- trunk/wp-admin/includes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-list-table.php
r20094 r20100 904 904 * @access private 905 905 */ 906 function _js_vars( ) {906 function _js_vars( $extra_args = array() ) { 907 907 $current_screen = get_current_screen(); 908 908 … … 915 915 ); 916 916 917 if ( is_array( $extra_args ) ) 918 $args = array_merge( $args, $extra_args ); 919 917 920 printf( "<script type='text/javascript'>list_args = %s;</script>\n", json_encode( $args ) ); 918 921 } -
trunk/wp-admin/includes/class-wp-theme-install-list-table.php
r20098 r20100 171 171 */ 172 172 function _js_vars() { 173 global $tab, $type; 174 parent::_js_vars( compact( $tab, $type) );173 global $tab, $type; 174 parent::_js_vars( compact( 'tab', 'type' ) ); 175 175 } 176 176 } -
trunk/wp-admin/includes/class-wp-themes-list-table.php
r20094 r20100 218 218 $search_string = isset( $_REQUEST['s'] ) ? esc_attr( stripslashes( $_REQUEST['s'] ) ) : ''; 219 219 220 $total_pages = 1;221 if ( ! empty( $this->_pagination_args['total_pages'] ) )222 $total_pages = $this->_pagination_args['total_pages'];223 224 220 $args = array( 225 221 'search' => $search_string, 226 222 'features' => $this->features, 227 223 'paged' => $this->get_pagenum(), 228 'total_pages' => $total_pages,224 'total_pages' => ! empty( $this->_pagination_args['total_pages'] ) ? $this->_pagination_args['total_pages'] : 1, 229 225 ); 230 226 231 227 if ( is_array( $extra_args ) ) 232 $args = array_merge( $args, $extra_args ); 233 234 printf( "<script type='text/javascript'>var theme_list_args = %s;</script>\n", json_encode( $args ) ); 235 parent::_js_vars(); 228 $args = array_merge( $args, $extra_args ); 229 230 parent::_js_vars( $args ); 236 231 } 237 232 }
Note: See TracChangeset
for help on using the changeset viewer.