equal
deleted
inserted
replaced
101 $_REQUEST['order'] = 'DESC'; |
101 $_REQUEST['order'] = 'DESC'; |
102 } |
102 } |
103 } |
103 } |
104 |
104 |
105 $args = array( |
105 $args = array( |
106 'number' => intval( $per_page ), |
106 'number' => (int) $per_page, |
107 'offset' => intval( ( $pagenum - 1 ) * $per_page ), |
107 'offset' => (int) ( ( $pagenum - 1 ) * $per_page ), |
108 'network_id' => get_current_network_id(), |
108 'network_id' => get_current_network_id(), |
109 ); |
109 ); |
110 |
110 |
111 if ( empty( $s ) ) { |
111 if ( empty( $s ) ) { |
112 // Nothing to do. |
112 // Nothing to do. |
330 * @since 5.3.0 |
330 * @since 5.3.0 |
331 * |
331 * |
332 * @param string $which The location of the extra table nav markup: 'top' or 'bottom'. |
332 * @param string $which The location of the extra table nav markup: 'top' or 'bottom'. |
333 */ |
333 */ |
334 do_action( 'restrict_manage_sites', $which ); |
334 do_action( 'restrict_manage_sites', $which ); |
|
335 |
335 $output = ob_get_clean(); |
336 $output = ob_get_clean(); |
|
337 |
336 if ( ! empty( $output ) ) { |
338 if ( ! empty( $output ) ) { |
337 echo $output; |
339 echo $output; |
338 submit_button( __( 'Filter' ), '', 'filter_action', false, array( 'id' => 'site-query-submit' ) ); |
340 submit_button( __( 'Filter' ), '', 'filter_action', false, array( 'id' => 'site-query-submit' ) ); |
339 } |
341 } |
340 } |
342 } |
616 |
618 |
617 reset( $this->status_list ); |
619 reset( $this->status_list ); |
618 |
620 |
619 $site_status = isset( $_REQUEST['status'] ) ? wp_unslash( trim( $_REQUEST['status'] ) ) : ''; |
621 $site_status = isset( $_REQUEST['status'] ) ? wp_unslash( trim( $_REQUEST['status'] ) ) : ''; |
620 foreach ( $this->status_list as $status => $col ) { |
622 foreach ( $this->status_list as $status => $col ) { |
621 if ( ( 1 === intval( $_site->{$status} ) ) && ( $site_status !== $status ) ) { |
623 if ( ( 1 === (int) $_site->{$status} ) && ( $site_status !== $status ) ) { |
622 $site_states[ $col[0] ] = $col[1]; |
624 $site_states[ $col[0] ] = $col[1]; |
623 } |
625 } |
624 } |
626 } |
625 |
627 |
626 /** |
628 /** |
627 * Filter the default site display states for items in the Sites list table. |
629 * Filters the default site display states for items in the Sites list table. |
628 * |
630 * |
629 * @since 5.3.0 |
631 * @since 5.3.0 |
630 * |
632 * |
631 * @param array $site_states An array of site states. Default 'Main', |
633 * @param array $site_states An array of site states. Default 'Main', |
632 * 'Archived', 'Mature', 'Spam', 'Deleted'. |
634 * 'Archived', 'Mature', 'Spam', 'Deleted'. |
660 /** |
662 /** |
661 * Generates and displays row action links. |
663 * Generates and displays row action links. |
662 * |
664 * |
663 * @since 4.3.0 |
665 * @since 4.3.0 |
664 * |
666 * |
665 * @param object $blog Site being acted upon. |
667 * @param array $blog Site being acted upon. |
666 * @param string $column_name Current column name. |
668 * @param string $column_name Current column name. |
667 * @param string $primary Primary column name. |
669 * @param string $primary Primary column name. |
668 * @return string Row actions output for sites in Multisite, or an empty string |
670 * @return string Row actions output for sites in Multisite, or an empty string |
669 * if the current column is not the primary column. |
671 * if the current column is not the primary column. |
670 */ |
672 */ |