Changeset 47219 for trunk/src/wp-admin/network/users.php
- Timestamp:
- 02/09/2020 04:52:28 PM (7 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/network/users.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/network/users.php
r47198 r47219 28 28 29 29 $id = intval( $_GET['id'] ); 30 if ( $id != '0' && $id != '1') {30 if ( '0' != $id && '1' != $id ) { 31 31 $_POST['allusers'] = array( $id ); // confirm_delete_users() can only handle arrays. 32 32 $title = __( 'Users' ); … … 50 50 check_admin_referer( 'bulk-users-network' ); 51 51 52 $doaction = $_POST['action'] != -1? $_POST['action'] : $_POST['action2'];52 $doaction = -1 != $_POST['action'] ? $_POST['action'] : $_POST['action2']; 53 53 $userfunction = ''; 54 54 … … 85 85 86 86 foreach ( (array) $blogs as $details ) { 87 if ( $details->userblog_id != get_network()->site_id ) { // Main blog is not a spam!87 if ( get_network()->site_id != $details->userblog_id ) { // Main blog is not a spam! 88 88 update_blog_status( $details->userblog_id, 'spam', '1' ); 89 89 } … … 177 177 } 178 178 179 if ( $i == 1) {179 if ( 1 == $i ) { 180 180 $deletefunction = 'delete'; 181 181 } else { … … 240 240 require_once ABSPATH . 'wp-admin/admin-header.php'; 241 241 242 if ( isset( $_REQUEST['updated'] ) && $_REQUEST['updated'] == 'true'&& ! empty( $_REQUEST['action'] ) ) {242 if ( isset( $_REQUEST['updated'] ) && 'true' == $_REQUEST['updated'] && ! empty( $_REQUEST['action'] ) ) { 243 243 ?> 244 244 <div id="message" class="updated notice is-dismissible"><p>
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)