]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/includes/class-wp-list-table.php
Wordpress 3.7
[autoinstalls/wordpress.git] / wp-admin / includes / class-wp-list-table.php
index 22c35f5edcba29c84b29b9794f1db8af9f10f901..bab488ec7cb792d6672278bd3f55710bee4f89dd 100644 (file)
@@ -87,7 +87,7 @@ class WP_List_Table {
 
                $this->screen = convert_to_screen( $args['screen'] );
 
-               add_filter( "manage_{$this->screen->id}_columns", array( &$this, 'get_columns' ), 0 );
+               add_filter( "manage_{$this->screen->id}_columns", array( $this, 'get_columns' ), 0 );
 
                if ( !$args['plural'] )
                        $args['plural'] = $this->screen->base;
@@ -99,7 +99,7 @@ class WP_List_Table {
 
                if ( $args['ajax'] ) {
                        // wp_enqueue_script( 'list-table' );
-                       add_action( 'admin_footer', array( &$this, '_js_vars' ) );
+                       add_action( 'admin_footer', array( $this, '_js_vars' ) );
                }
        }
 
@@ -340,7 +340,7 @@ class WP_List_Table {
                if ( !$action_count )
                        return '';
 
-               $out = '<div class="' . ( $always_visible ? 'row-actions-visible' : 'row-actions' ) . '">';
+               $out = '<div class="' . ( $always_visible ? 'row-actions visible' : 'row-actions' ) . '">';
                foreach ( $actions as $action => $link ) {
                        ++$i;
                        ( $i == $action_count ) ? $sep = '' : $sep = ' | ';
@@ -367,6 +367,16 @@ class WP_List_Table {
                        ORDER BY post_date DESC
                ", $post_type ) );
 
+               /**
+                * Filter the months dropdown results.
+                *
+                * @since 3.7.0
+                *
+                * @param object $months    The months dropdown query results.
+                * @param string $post_type The post type.
+                */
+               $months = apply_filters( 'months_dropdown_results', $months, $post_type );
+
                $month_count = count( $months );
 
                if ( !$month_count || ( 1 == $month_count && 0 == $months[0]->month ) )
@@ -764,7 +774,7 @@ class WP_List_Table {
 ?>
        <div class="tablenav <?php echo esc_attr( $which ); ?>">
 
-               <div class="alignleft actions">
+               <div class="alignleft actions bulkactions">
                        <?php $this->bulk_actions(); ?>
                </div>
 <?php
@@ -857,7 +867,7 @@ class WP_List_Table {
                        }
                        elseif ( method_exists( $this, 'column_' . $column_name ) ) {
                                echo "<td $attributes>";
-                               echo call_user_func( array( &$this, 'column_' . $column_name ), $item );
+                               echo call_user_func( array( $this, 'column_' . $column_name ), $item );
                                echo "</td>";
                        }
                        else {