Changeset 47808 for trunk/src/wp-admin/plugins.php
- Timestamp:
- 05/16/2020 06:40:52 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/plugins.php
r47198 r47808 44 44 $result = activate_plugin( $plugin, self_admin_url( 'plugins.php?error=true&plugin=' . urlencode( $plugin ) ), is_network_admin() ); 45 45 if ( is_wp_error( $result ) ) { 46 if ( 'unexpected_output' == $result->get_error_code() ) {46 if ( 'unexpected_output' === $result->get_error_code() ) { 47 47 $redirect = self_admin_url( 'plugins.php?error=true&charsout=' . strlen( $result->get_error_data() ) . '&plugin=' . urlencode( $plugin ) . "&plugin_status=$status&paged=$page&s=$s" ); 48 48 wp_redirect( add_query_arg( '_error_nonce', wp_create_nonce( 'plugin-activation-error_' . $plugin ), $redirect ) ); … … 63 63 } 64 64 65 if ( isset( $_GET['from'] ) && 'import' == $_GET['from'] ) {65 if ( isset( $_GET['from'] ) && 'import' === $_GET['from'] ) { 66 66 // Overrides the ?error=true one above and redirects to the Imports page, stripping the -importer suffix. 67 67 wp_redirect( self_admin_url( 'import.php?import=' . str_replace( '-importer', '', dirname( $plugin ) ) ) ); 68 } elseif ( isset( $_GET['from'] ) && 'press-this' == $_GET['from'] ) {68 } elseif ( isset( $_GET['from'] ) && 'press-this' === $_GET['from'] ) { 69 69 wp_redirect( self_admin_url( 'press-this.php' ) ); 70 70 } else { … … 293 293 $plugin_slug = dirname( $plugin ); 294 294 295 if ( '.' == $plugin_slug ) {295 if ( '.' === $plugin_slug ) { 296 296 $data = get_plugin_data( WP_PLUGIN_DIR . '/' . $plugin ); 297 297 if ( $data ) { … … 580 580 <?php elseif ( isset( $_GET['deactivate-multi'] ) ) : ?> 581 581 <div id="message" class="updated notice is-dismissible"><p><?php _e( 'Selected plugins deactivated.' ); ?></p></div> 582 <?php elseif ( 'update-selected' == $action ) : ?>582 <?php elseif ( 'update-selected' === $action ) : ?> 583 583 <div id="message" class="updated notice is-dismissible"><p><?php _e( 'All selected plugins are up to date.' ); ?></p></div> 584 584 <?php elseif ( isset( $_GET['resume'] ) ) : ?>
Note: See TracChangeset
for help on using the changeset viewer.