Changeset 47808 for trunk/src/wp-admin/update.php
- Timestamp:
- 05/16/2020 06:40:52 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/update.php
r47550 r47808 23 23 $action = isset( $_REQUEST['action'] ) ? $_REQUEST['action'] : ''; 24 24 25 if ( 'update-selected' == $action ) {25 if ( 'update-selected' === $action ) { 26 26 if ( ! current_user_can( 'update_plugins' ) ) { 27 27 wp_die( __( 'Sorry, you are not allowed to update plugins for this site.' ) ); … … 51 51 iframe_footer(); 52 52 53 } elseif ( 'upgrade-plugin' == $action ) {53 } elseif ( 'upgrade-plugin' === $action ) { 54 54 if ( ! current_user_can( 'update_plugins' ) ) { 55 55 wp_die( __( 'Sorry, you are not allowed to update plugins for this site.' ) ); … … 73 73 require_once ABSPATH . 'wp-admin/admin-footer.php'; 74 74 75 } elseif ( 'activate-plugin' == $action ) {75 } elseif ( 'activate-plugin' === $action ) { 76 76 if ( ! current_user_can( 'update_plugins' ) ) { 77 77 wp_die( __( 'Sorry, you are not allowed to update plugins for this site.' ) ); … … 99 99 } 100 100 iframe_footer(); 101 } elseif ( 'install-plugin' == $action ) {101 } elseif ( 'install-plugin' === $action ) { 102 102 103 103 if ( ! current_user_can( 'install_plugins' ) ) { … … 142 142 require_once ABSPATH . 'wp-admin/admin-footer.php'; 143 143 144 } elseif ( 'upload-plugin' == $action ) {144 } elseif ( 'upload-plugin' === $action ) { 145 145 146 146 if ( ! current_user_can( 'upload_plugins' ) ) { … … 172 172 require_once ABSPATH . 'wp-admin/admin-footer.php'; 173 173 174 } elseif ( 'upgrade-theme' == $action ) {174 } elseif ( 'upgrade-theme' === $action ) { 175 175 176 176 if ( ! current_user_can( 'update_themes' ) ) { … … 194 194 195 195 require_once ABSPATH . 'wp-admin/admin-footer.php'; 196 } elseif ( 'update-selected-themes' == $action ) {196 } elseif ( 'update-selected-themes' === $action ) { 197 197 if ( ! current_user_can( 'update_themes' ) ) { 198 198 wp_die( __( 'Sorry, you are not allowed to update themes for this site.' ) ); … … 221 221 222 222 iframe_footer(); 223 } elseif ( 'install-theme' == $action ) {223 } elseif ( 'install-theme' === $action ) { 224 224 225 225 if ( ! current_user_can( 'install_themes' ) ) { … … 261 261 require_once ABSPATH . 'wp-admin/admin-footer.php'; 262 262 263 } elseif ( 'upload-theme' == $action ) {263 } elseif ( 'upload-theme' === $action ) { 264 264 265 265 if ( ! current_user_can( 'upload_themes' ) ) {
Note: See TracChangeset
for help on using the changeset viewer.