var $_pagination;
/**
- * Constructor. The child class should call this constructor from it's own constructor
+ * Constructor. The child class should call this constructor from its own constructor
*
* @param array $args An associative array with information about the current table
* @access protected
$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;
if ( $args['ajax'] ) {
// wp_enqueue_script( 'list-table' );
- add_action( 'admin_footer', array( &$this, '_js_vars' ) );
+ add_action( 'admin_footer', array( $this, '_js_vars' ) );
}
}
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 = ' | ';
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 ) )
?>
<div class="tablenav <?php echo esc_attr( $which ); ?>">
- <div class="alignleft actions">
+ <div class="alignleft actions bulkactions">
<?php $this->bulk_actions(); ?>
</div>
<?php
$row_class = ( $row_class == '' ? ' class="alternate"' : '' );
echo '<tr' . $row_class . '>';
- echo $this->single_row_columns( $item );
+ $this->single_row_columns( $item );
echo '</tr>';
}
}
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 {