Changeset 55720
- Timestamp:
- 05/04/2023 02:34:58 AM (15 months ago)
- Location:
- trunk/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-plugin-upgrader.php
r53426 r55720 227 227 'clear_working' => true, 228 228 'hook_extra' => array( 229 'plugin' => $plugin, 230 'type' => 'plugin', 231 'action' => 'update', 229 'plugin' => $plugin, 230 'type' => 'plugin', 231 'action' => 'update', 232 'temp_backup' => array( 233 'slug' => dirname( $plugin ), 234 'src' => WP_PLUGIN_DIR, 235 'dir' => 'plugins', 236 ), 232 237 ), 233 238 ) … … 343 348 'is_multi' => true, 344 349 'hook_extra' => array( 345 'plugin' => $plugin, 350 'plugin' => $plugin, 351 'temp_backup' => array( 352 'slug' => dirname( $plugin ), 353 'src' => WP_PLUGIN_DIR, 354 'dir' => 'plugins', 355 ), 346 356 ), 347 357 ) -
trunk/src/wp-admin/includes/class-theme-upgrader.php
r53426 r55720 329 329 'clear_working' => true, 330 330 'hook_extra' => array( 331 'theme' => $theme, 332 'type' => 'theme', 333 'action' => 'update', 331 'theme' => $theme, 332 'type' => 'theme', 333 'action' => 'update', 334 'temp_backup' => array( 335 'slug' => $theme, 336 'src' => get_theme_root( $theme ), 337 'dir' => 'themes', 338 ), 334 339 ), 335 340 ) … … 444 449 'is_multi' => true, 445 450 'hook_extra' => array( 446 'theme' => $theme, 451 'theme' => $theme, 452 'temp_backup' => array( 453 'slug' => $theme, 454 'src' => get_theme_root( $theme ), 455 'dir' => 'themes', 456 ), 447 457 ), 448 458 ) -
trunk/src/wp-admin/includes/class-wp-site-health.php
r55703 r55720 1927 1927 1928 1928 /** 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 1929 2116 * Tests if loopbacks work as expected. 1930 2117 * … … 2533 2720 $tests = array( 2534 2721 'direct' => array( 2535 'wordpress_version' => array(2722 'wordpress_version' => array( 2536 2723 'label' => __( 'WordPress Version' ), 2537 2724 'test' => 'wordpress_version', 2538 2725 ), 2539 'plugin_version' => array(2726 'plugin_version' => array( 2540 2727 'label' => __( 'Plugin Versions' ), 2541 2728 'test' => 'plugin_version', 2542 2729 ), 2543 'theme_version' => array(2730 'theme_version' => array( 2544 2731 'label' => __( 'Theme Versions' ), 2545 2732 'test' => 'theme_version', 2546 2733 ), 2547 'php_version' => array(2734 'php_version' => array( 2548 2735 'label' => __( 'PHP Version' ), 2549 2736 'test' => 'php_version', 2550 2737 ), 2551 'php_extensions' => array(2738 'php_extensions' => array( 2552 2739 'label' => __( 'PHP Extensions' ), 2553 2740 'test' => 'php_extensions', 2554 2741 ), 2555 'php_default_timezone' => array(2742 'php_default_timezone' => array( 2556 2743 'label' => __( 'PHP Default Timezone' ), 2557 2744 'test' => 'php_default_timezone', 2558 2745 ), 2559 'php_sessions' => array(2746 'php_sessions' => array( 2560 2747 'label' => __( 'PHP Sessions' ), 2561 2748 'test' => 'php_sessions', 2562 2749 ), 2563 'sql_server' => array(2750 'sql_server' => array( 2564 2751 'label' => __( 'Database Server version' ), 2565 2752 'test' => 'sql_server', 2566 2753 ), 2567 'utf8mb4_support' => array(2754 'utf8mb4_support' => array( 2568 2755 'label' => __( 'MySQL utf8mb4 support' ), 2569 2756 'test' => 'utf8mb4_support', 2570 2757 ), 2571 'ssl_support' => array(2758 'ssl_support' => array( 2572 2759 'label' => __( 'Secure communication' ), 2573 2760 'test' => 'ssl_support', 2574 2761 ), 2575 'scheduled_events' => array(2762 'scheduled_events' => array( 2576 2763 'label' => __( 'Scheduled events' ), 2577 2764 'test' => 'scheduled_events', 2578 2765 ), 2579 'http_requests' => array(2766 'http_requests' => array( 2580 2767 'label' => __( 'HTTP Requests' ), 2581 2768 'test' => 'http_requests', 2582 2769 ), 2583 'rest_availability' => array(2770 'rest_availability' => array( 2584 2771 'label' => __( 'REST API availability' ), 2585 2772 'test' => 'rest_availability', 2586 2773 'skip_cron' => true, 2587 2774 ), 2588 'debug_enabled' => array(2775 'debug_enabled' => array( 2589 2776 'label' => __( 'Debugging enabled' ), 2590 2777 'test' => 'is_in_debug_mode', 2591 2778 ), 2592 'file_uploads' => array(2779 'file_uploads' => array( 2593 2780 'label' => __( 'File uploads' ), 2594 2781 'test' => 'file_uploads', 2595 2782 ), 2596 'plugin_theme_auto_updates' => array(2783 'plugin_theme_auto_updates' => array( 2597 2784 'label' => __( 'Plugin and theme auto-updates' ), 2598 2785 'test' => 'plugin_theme_auto_updates', 2786 2787 2788 2789 2790 2791 2792 2793 2599 2794 ), 2600 2795 ), -
trunk/src/wp-admin/includes/class-wp-upgrader.php
r55258 r55720 114 114 115 115 /** 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 116 136 * Construct the upgrader with a skin. 117 137 * … … 135 155 * and also add the generic strings to `WP_Upgrader::$strings`. 136 156 * 157 158 137 159 * @since 2.8.0 160 138 161 */ 139 162 public function init() { 140 163 $this->skin->set_upgrader( $this ); 141 164 $this->generic_strings(); 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 142 180 } 143 181 … … 168 206 $this->strings['maintenance_start'] = __( 'Enabling Maintenance mode…' ); 169 207 $this->strings['maintenance_end'] = __( 'Disabling Maintenance mode…' ); 208 209 210 211 212 213 214 215 216 170 217 } 171 218 … … 309 356 $this->skin->feedback( 'unpack_package' ); 310 357 358 359 360 361 311 362 $upgrade_folder = $wp_filesystem->wp_content_dir() . 'upgrade/'; 312 363 … … 533 584 if ( is_wp_error( $source ) ) { 534 585 return $source; 586 587 588 589 590 591 592 593 594 595 535 596 } 536 597 … … 615 676 } 616 677 617 // Clear the working folder?678 // Clear the working ? 618 679 if ( $args['clear_working'] ) { 619 680 $wp_filesystem->delete( $remote_source, true ); … … 828 889 829 890 $this->skin->set_result( $result ); 891 830 892 if ( is_wp_error( $result ) ) { 893 894 895 896 897 898 899 900 901 902 903 831 904 $this->skin->error( $result ); 832 905 … … 840 913 841 914 $this->skin->after(); 915 916 917 918 919 920 842 921 843 922 if ( ! $options['is_multi'] ) { … … 967 1046 return delete_option( $lock_name . '.lock' ); 968 1047 } 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 969 1212 } 970 1213 -
trunk/src/wp-includes/update.php
r55641 r55720 1078 1078 } 1079 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1080 1136 if ( ( ! is_main_site() && ! is_network_admin() ) || wp_doing_ajax() ) { 1081 1137 return; … … 1102 1158 1103 1159 add_action( 'init', 'wp_schedule_update_checks' ); 1160 1161
Note: See TracChangeset
for help on using the changeset viewer.