|
18 | 18 | * |
19 | 19 | * @since 2.7.0 |
20 | 20 | * |
21 | | - * @global array $_old_files |
22 | | - * @var array |
| 21 | + * @global string[] $_old_files |
| 22 | + * @var string[] |
23 | 23 | * @name $_old_files |
24 | 24 | */ |
25 | 25 | global $_old_files; |
|
840 | 840 | * |
841 | 841 | * @since 6.2.0 |
842 | 842 | * |
843 | | - * @global array $_old_requests_files |
844 | | - * @var array |
| 843 | + * @global string[] $_old_requests_files |
| 844 | + * @var string[] |
845 | 845 | * @name $_old_requests_files |
846 | 846 | */ |
847 | 847 | global $_old_requests_files; |
|
937 | 937 | * upgrade. New themes are now installed again. To disable new |
938 | 938 | * themes from being installed on upgrade, explicitly define |
939 | 939 | * CORE_UPGRADE_SKIP_NEW_BUNDLED as true. |
940 | | - * @global array $_new_bundled_files |
941 | | - * @var array |
| 940 | + * @global string[] $_new_bundled_files |
| 941 | + * @var string[] |
942 | 942 | * @name $_new_bundled_files |
943 | 943 | */ |
944 | 944 | global $_new_bundled_files; |
|
977 | 977 | * |
978 | 978 | * The steps for the upgrader for after the new release is downloaded and |
979 | 979 | * unzipped is: |
| 980 | + * |
980 | 981 | * 1. Test unzipped location for select files to ensure that unzipped worked. |
981 | 982 | * 2. Create the .maintenance file in current WordPress base. |
982 | 983 | * 3. Copy new WordPress directory over old WordPress files. |
983 | 984 | * 4. Upgrade WordPress to new version. |
984 | | - * 4.1. Copy all files/folders other than wp-content |
985 | | - * 4.2. Copy any language files to WP_LANG_DIR (which may differ from WP_CONTENT_DIR |
986 | | - * 4.3. Copy any new bundled themes/plugins to their respective locations |
| 985 | + * 1. Copy all files/folders other than wp-content |
| 986 | + * 2. Copy any language files to `WP_LANG_DIR` (which may differ from `WP_CONTENT_DIR` |
| 987 | + * 3. Copy any new bundled themes/plugins to their respective locations |
987 | 988 | * 5. Delete new WordPress directory path. |
988 | 989 | * 6. Delete .maintenance file. |
989 | 990 | * 7. Remove old files. |
|
1005 | 1006 | * @since 2.7.0 |
1006 | 1007 | * |
1007 | 1008 | * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass. |
1008 | | - * @global array $_old_files |
1009 | | - * @global array $_old_requests_files |
1010 | | - * @global array $_new_bundled_files |
| 1009 | + * @global string[] $_old_files |
| 1010 | + * @global string[] $_old_requests_files |
| 1011 | + * @global string[] $_new_bundled_files |
1011 | 1012 | * @global wpdb $wpdb WordPress database abstraction object. |
1012 | 1013 | * |
1013 | 1014 | * @param string $from New release unzipped path. |
@@ -1603,7 +1604,7 @@ function update_core( $from, $to ) { |
1603 | 1604 | * |
1604 | 1605 | * @since 6.2.0 |
1605 | 1606 | * |
1606 | | - * @global array $_old_requests_files Requests files to be preloaded. |
| 1607 | + * @global string[] $_old_requests_files Requests files to be preloaded. |
1607 | 1608 | * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass. |
1608 | 1609 | * @global string $wp_version The WordPress version string. |
1609 | 1610 | * |
@@ -1715,7 +1716,7 @@ function _redirect_to_about_wordpress( $new_version ) { |
1715 | 1716 | * |
1716 | 1717 | * @since 4.2.2 |
1717 | 1718 | * |
1718 | | - * @global array $wp_theme_directories |
| 1719 | + * @global string[] $wp_theme_directories |
1719 | 1720 | * @global WP_Filesystem_Base $wp_filesystem |
1720 | 1721 | */ |
1721 | 1722 | function _upgrade_422_remove_genericons() { |
@@ -1761,7 +1762,7 @@ function _upgrade_422_remove_genericons() { |
1761 | 1762 | * @since 4.2.2 |
1762 | 1763 | * |
1763 | 1764 | * @param string $directory Directory path. Expects trailingslashed. |
1764 | | - * @return array |
| 1765 | + * @return string[] |
1765 | 1766 | */ |
1766 | 1767 | function _upgrade_422_find_genericons_files_in_folder( $directory ) { |
1767 | 1768 | $directory = trailingslashit( $directory ); |
|
0 commit comments