| @@ -26,8 +26,17 @@ | ||
| 26 | 26 | */ |
| 27 | 27 | public $base; |
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | + * Holds the bulk actions. | |
| 31 | + * | |
| 32 | + * @since 3.9.6 | |
| 33 | + * | |
| 34 | + * @var array | |
| 35 | + */ | |
| 36 | + protected $_actions; // phpcs:ignore PSR2.Classes.PropertyDeclaration.Underscore | |
| 37 | + | |
| 38 | + /** | |
| 30 | 39 | * Constructor. |
| 31 | 40 | * |
| 32 | 41 | * @since 3.9.6 |
| 33 | 42 | * |
| @@ -95,9 +104,9 @@ | ||
| 95 | 104 | } |
| 96 | 105 | ?> |
| 97 | 106 | </select> |
| 98 | 107 | <select name="profile_id" size="1"> |
| 99 | - <option value=""<?php selected( $this->get_profile(), '' ); ?>><?php esc_attr_e( 'Filter by Profile', 'wp-to-buffer' ); ?></option> | |
| 108 | + <option value=""<?php selected( $this->get_profile_id(), '' ); ?>><?php esc_attr_e( 'Filter by Profile', 'wp-to-buffer' ); ?></option> | |
| 100 | 109 | <?php |
| 101 | 110 | foreach ( $profiles as $profile_id => $label ) { |
| 102 | 111 | ?> |
| 103 | 112 | <option value="<?php echo esc_attr( $profile_id ); ?>"<?php selected( $this->get_profile_id(), $profile_id ); ?>><?php echo esc_attr( $label ); ?></option> |
| @@ -293,9 +302,9 @@ | ||
| 293 | 302 | // Define pagination. |
| 294 | 303 | $this->set_pagination_args( |
| 295 | 304 | array( |
| 296 | 305 | 'total_items' => $total, |
| 297 | - 'total_pages' => ceil( $total / $per_page ), | |
| 306 | + 'total_pages' => (int) ceil( $total / $per_page ), | |
| 298 | 307 | 'per_page' => $per_page, |
| 299 | 308 | ) |
| 300 | 309 | ); |
| 301 | 310 | |
| @@ -597,9 +606,9 @@ | ||
| 597 | 606 | * Get the Pagination Page requested by the user |
| 598 | 607 | * |
| 599 | 608 | * @since 3.9.7 |
| 600 | 609 | * |
| 601 | - * @return string | |
| 610 | + * @return int | |
| 602 | 611 | */ |
| 603 | 612 | private function get_page() { |
| 604 | 613 | |
| 605 | 614 | // Don't nonce check because pagination may not include a nonce if no search performed. |