Changeset 16125
- Timestamp:
- 11/01/2010 08:37:02 AM (14 years ago)
- Location:
- trunk/wp-admin/includes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-list-table.php
r16113 r16125 90 90 $this->_screen = convert_to_screen( $this->_screen ); 91 91 92 add_filter( 'manage_' . $this->_screen->id . '_columns', array( $this, 'get_columns' ), 0 );92 add_filter( 'manage_' . $this->_screen->id . '_columns', array( &$this, 'get_columns' ), 0 ); 93 93 94 94 if ( !$args['plural'] ) … … 99 99 if ( $args['ajax'] ) { 100 100 wp_enqueue_script( 'list-table' ); 101 add_action( 'admin_footer', array( $this, '_js_vars' ) );101 add_action( 'admin_footer', array( &$this, '_js_vars' ) ); 102 102 } 103 103 } … … 763 763 elseif ( method_exists( $this, 'column_' . $column_name ) ) { 764 764 echo "<td $attributes>"; 765 echo call_user_func( array( $this, 'column_' . $column_name ), $item );765 echo call_user_func( array( &$this, 'column_' . $column_name ), $item ); 766 766 echo "</td>"; 767 767 } … … 847 847 */ 848 848 function require_list_table( $class ) { 849 $core_classes = array( 'WP_Posts_Table' => 'posts', 'WP_Media_Table' => 'media', 'WP_Terms_Table' => 'terms', 850 'WP_Users_Table' => 'users', 'WP_Comments_Table' => 'comments', 'WP_Post_Comments_Table' => 'comments', 851 'WP_Links_Table' => 'links', 'WP_Sites_Table' => 'sites', 'WP_MS_Users_Table' => 'ms-users', 852 'WP_Plugins_Table' => 'plugins', 'WP_Plugin_Install_Table' => 'plugin-install', 'WP_Themes_Table' => 'themes', 853 'WP_Theme_Install_Table' => 'theme-install', 'WP_MS_Themes_Table' => 'ms-themes' ); 849 $core_classes = array( 850 'WP_Posts_Table' => 'posts', 851 'WP_Media_Table' => 'media', 852 'WP_Terms_Table' => 'terms', 853 'WP_Users_Table' => 'users', 854 'WP_Comments_Table' => 'comments', 855 'WP_Post_Comments_Table' => 'comments', 856 'WP_Links_Table' => 'links', 857 'WP_Sites_Table' => 'sites', 858 'WP_MS_Users_Table' => 'ms-users', 859 'WP_Plugins_Table' => 'plugins', 860 'WP_Plugin_Install_Table' => 'plugin-install', 861 'WP_Themes_Table' => 'themes', 862 'WP_Theme_Install_Table' => 'theme-install', 863 'WP_MS_Themes_Table' => 'ms-themes', 864 ); 854 865 855 866 if ( isset( $core_classes[ $class ] ) ) { -
trunk/wp-admin/includes/list-table-ms-themes.php
r16123 r16125 77 77 if ( $s ) { 78 78 $status = 'search'; 79 $themes['search'] = array_filter( $themes['all'], array( $this, '_search_callback' ) );79 $themes['search'] = array_filter( $themes['all'], array( &$this, '_search_callback' ) ); 80 80 } 81 81 … … 94 94 $order = strtoupper( $order ); 95 95 96 uasort( $this->items, array( $this, '_order_callback' ) );96 uasort( $this->items, array( &$this, '_order_callback' ) ); 97 97 } 98 98 -
trunk/wp-admin/includes/list-table-plugins.php
r16089 r16125 110 110 if ( $s ) { 111 111 $status = 'search'; 112 $plugins['search'] = array_filter( $plugins['all'], array( $this, '_search_callback' ) );112 $plugins['search'] = array_filter( $plugins['all'], array( &$this, '_search_callback' ) ); 113 113 } 114 114 … … 127 127 $order = strtoupper( $order ); 128 128 129 uasort( $this->items, array( $this, '_order_callback' ) );129 uasort( $this->items, array( &$this, '_order_callback' ) ); 130 130 } 131 131
Note: See TracChangeset
for help on using the changeset viewer.