Changeset 47808 for trunk/src/wp-admin/update-core.php
- Timestamp:
- 05/16/2020 06:40:52 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/update-core.php
r47230 r47808 691 691 692 692 $upgrade_error = false; 693 if ( ( 'do-theme-upgrade' == $action || ( 'do-plugin-upgrade'== $action && ! isset( $_GET['plugins'] ) ) )693 if ( ( 'do-theme-upgrade' === $action || ( 'do-plugin-upgrade' === $action && ! isset( $_GET['plugins'] ) ) ) 694 694 && ! isset( $_POST['checked'] ) ) { 695 $upgrade_error = 'do-theme-upgrade' == $action? 'themes' : 'plugins';695 $upgrade_error = ( 'do-theme-upgrade' === $action ) ? 'themes' : 'plugins'; 696 696 $action = 'upgrade-core'; 697 697 } … … 732 732 ); 733 733 734 if ( 'upgrade-core' == $action ) {734 if ( 'upgrade-core' === $action ) { 735 735 // Force a update check when requested. 736 736 $force_check = ! empty( $_GET['force-check'] ); … … 796 796 require_once ABSPATH . 'wp-admin/admin-footer.php'; 797 797 798 } elseif ( 'do-core-upgrade' == $action || 'do-core-reinstall'== $action ) {798 } elseif ( 'do-core-upgrade' === $action || 'do-core-reinstall' === $action ) { 799 799 800 800 if ( ! current_user_can( 'update_core' ) ) { … … 812 812 813 813 require_once ABSPATH . 'wp-admin/admin-header.php'; 814 if ( 'do-core-reinstall' == $action ) {814 if ( 'do-core-reinstall' === $action ) { 815 815 $reinstall = true; 816 816 } else { … … 832 832 require_once ABSPATH . 'wp-admin/admin-footer.php'; 833 833 834 } elseif ( 'do-plugin-upgrade' == $action ) {834 } elseif ( 'do-plugin-upgrade' === $action ) { 835 835 836 836 if ( ! current_user_can( 'update_plugins' ) ) { … … 870 870 require_once ABSPATH . 'wp-admin/admin-footer.php'; 871 871 872 } elseif ( 'do-theme-upgrade' == $action ) {872 } elseif ( 'do-theme-upgrade' === $action ) { 873 873 874 874 if ( ! current_user_can( 'update_themes' ) ) { … … 910 910 require_once ABSPATH . 'wp-admin/admin-footer.php'; 911 911 912 } elseif ( 'do-translation-upgrade' == $action ) {912 } elseif ( 'do-translation-upgrade' === $action ) { 913 913 914 914 if ( ! current_user_can( 'update_languages' ) ) {
Note: See TracChangeset
for help on using the changeset viewer.