Make WordPress Core

Changeset 59861

Timestamp:
02/23/2025 11:09:25 AM (8 months ago)
Author:
johnbillion
Message:

Docs: Various improvements to inline documentation.

See #62281

Location:
trunk/src
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-upgrader.php

    r59291 r59861  
    487487     *
    488488     * @global WP_Filesystem_Base $wp_filesystem        WordPress filesystem subclass.
    489      * @global array              $wp_theme_directories
     489     * @global string[]           $wp_theme_directories
    490490     *
    491491     * @param array|string $args {
  • trunk/src/wp-admin/includes/update-core.php

    r59803 r59861  
    1919 * @since 2.7.0
    2020 *
    21  * @global array $_old_files
    22  * @var array
     21 * @global string[] $_old_files
     22 * @var string[]
    2323 * @name $_old_files
    2424 */
     
    841841 * @since 6.2.0
    842842 *
    843  * @global array $_old_requests_files
    844  * @var array
     843 * @global string[] $_old_requests_files
     844 * @var string[]
    845845 * @name $_old_requests_files
    846846 */
     
    938938 *              themes from being installed on upgrade, explicitly define
    939939 *              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[]
    942942 * @name $_new_bundled_files
    943943 */
     
    978978 * The steps for the upgrader for after the new release is downloaded and
    979979 * unzipped is:
     980 *
    980981 *   1. Test unzipped location for select files to ensure that unzipped worked.
    981982 *   2. Create the .maintenance file in current WordPress base.
    982983 *   3. Copy new WordPress directory over old WordPress files.
    983984 *   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
    987988 *   5. Delete new WordPress directory path.
    988989 *   6. Delete .maintenance file.
     
    10061007 *
    10071008 * @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
    10111012 * @global wpdb               $wpdb                   WordPress database abstraction object.
    10121013 *
     
    16041605 * @since 6.2.0
    16051606 *
    1606  * @global array              $_old_requests_files Requests files to be preloaded.
     1607 * @global string[]           $_old_requests_files Requests files to be preloaded.
    16071608 * @global WP_Filesystem_Base $wp_filesystem       WordPress filesystem subclass.
    16081609 * @global string             $wp_version          The WordPress version string.
     
    17161717 * @since 4.2.2
    17171718 *
    1718  * @global array              $wp_theme_directories
     1719 * @global string[]           $wp_theme_directories
    17191720 * @global WP_Filesystem_Base $wp_filesystem
    17201721 */
     
    17621763 *
    17631764 * @param string $directory Directory path. Expects trailingslashed.
    1764  * @return array
     1765 * @return string[]
    17651766 */
    17661767function _upgrade_422_find_genericons_files_in_folder( $directory ) {
  • trunk/src/wp-admin/includes/update.php

    r58813 r59861  
    402402 * @since 2.9.0
    403403 *
    404  * @return array
     404 * @return object[]
    405405 */
    406406function get_plugin_updates() {
     
    625625 * @since 2.9.0
    626626 *
    627  * @return array
     627 * @return WP_Theme[]
    628628 */
    629629function get_theme_updates() {
  • trunk/src/wp-admin/includes/upgrade.php

    r59828 r59861  
    28612861 * @param bool            $execute Optional. Whether or not to execute the query right away.
    28622862 *                                 Default true.
    2863  * @return array Strings containing the results of the various update queries.
     2863 * @return string[] Strings containing the results of the various update queries.
    28642864 */
    28652865function dbDelta( $queries = '', $execute = true ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid
  • trunk/src/wp-includes/class-wp-recovery-mode.php

    r59336 r59861  
    339339     * @since 5.2.0
    340340     *
    341      * @global array $wp_theme_directories
     341     * @global string[] $wp_theme_directories
    342342     *
    343343     * @param array $error Error details from `error_get_last()`.
  • trunk/src/wp-includes/class-wp-theme.php

    r59193 r59861  
    243243     * @since 3.4.0
    244244     *
    245      * @global array $wp_theme_directories
     245     * @global string[] $wp_theme_directories
    246246     *
    247247     * @param string        $theme_dir  Directory of the theme within the theme_root.
  • trunk/src/wp-includes/theme.php

    r59832 r59861  
    1515 * @since 3.4.0
    1616 *
    17  * @global array $wp_theme_directories
     17 * @global string[] $wp_theme_directories
    1818 *
    1919 * @param array $args {
     
    106106 * @since 3.4.0
    107107 *
    108  * @global array $wp_theme_directories
     108 * @global string[] $wp_theme_directories
    109109 *
    110110 * @param string $stylesheet Optional. Directory name for the theme. Defaults to active theme.
     
    381381 * @since 2.9.0
    382382 *
    383  * @global array $wp_theme_directories
     383 * @global string[] $wp_theme_directories
    384384 *
    385385 * @return array|string An array of theme roots keyed by template/stylesheet
     
    406406 * @since 2.9.0
    407407 *
    408  * @global array $wp_theme_directories
     408 * @global string[] $wp_theme_directories
    409409 *
    410410 * @param string $directory Either the full filesystem path to a theme folder
     
    442442 * @since 2.9.0
    443443 *
    444  * @global array $wp_theme_directories
     444 * @global string[] $wp_theme_directories
    445445 *
    446446 * @param bool $force Optional. Whether to force a new directory scan. Default false.
     
    592592 * @since 1.5.0
    593593 *
    594  * @global array $wp_theme_directories
     594 * @global string[] $wp_theme_directories
    595595 *
    596596 * @param string $stylesheet_or_template Optional. The stylesheet or template name of the theme.
     
    637637 * @since 1.5.0
    638638 *
    639  * @global array $wp_theme_directories
     639 * @global string[] $wp_theme_directories
    640640 *
    641641 * @param string $stylesheet_or_template Optional. The stylesheet or template name of the theme.
     
    688688 * @since 3.1.0
    689689 *
    690  * @global array $wp_theme_directories
     690 * @global string[] $wp_theme_directories
    691691 *
    692692 * @param string $stylesheet_or_template The stylesheet or template name of the theme.
     
    751751 * @since 2.5.0
    752752 *
    753  * @global array                $wp_theme_directories
     753 * @global string[]             $wp_theme_directories
    754754 * @global WP_Customize_Manager $wp_customize
    755755 * @global array                $sidebars_widgets
  • trunk/src/wp-includes/update.php

    r59688 r59861  
    489489         *     The plugin update data with the latest details. Default false.
    490490         *
    491          *     @type string $id           Optional. ID of the plugin for update purposes, should be a URI
    492          *                                specified in the `Update URI` header field.
    493          *     @type string $slug         Slug of the plugin.
    494          *     @type string $version      The version of the plugin.
    495          *     @type string $url          The URL for details of the plugin.
    496          *     @type string $package      Optional. The update ZIP for the plugin.
    497          *     @type string $tested       Optional. The version of WordPress the plugin is tested against.
    498          *     @type string $requires_php Optional. The version of PHP which the plugin requires.
    499          *     @type bool   $autoupdate   Optional. Whether the plugin should automatically update.
    500          *     @type array $icons        Optional. Array of plugin icons.
    501          *     @type array $banners      Optional. Array of plugin banners.
    502          *     @type array $banners_rtl  Optional. Array of plugin RTL banners.
    503          *     @type array  $translations {
     491         *     @type string   $id           Optional. ID of the plugin for update purposes, should be a URI
     492         *                                  specified in the `Update URI` header field.
     493         *     @type string   $slug         Slug of the plugin.
     494         *     @type string   $version      The version of the plugin.
     495         *     @type string   $url          The URL for details of the plugin.
     496         *     @type string   $package      Optional. The update ZIP for the plugin.
     497         *     @type string   $tested       Optional. The version of WordPress the plugin is tested against.
     498         *     @type string   $requires_php Optional. The version of PHP which the plugin requires.
     499         *     @type bool     $autoupdate   Optional. Whether the plugin should automatically update.
     500         *     @type string[] $icons        Optional. Array of plugin icons.
     501         *     @type string[] $banners      Optional. Array of plugin banners.
     502         *     @type string[] $banners_rtl  Optional. Array of plugin RTL banners.
     503         *     @type array    $translations {
    504504         *         Optional. List of translation updates for the plugin.
    505505         *
     
    975975     *     Fetched update data.
    976976     *
    977      *     @type array   $counts       An array of counts for available plugin, theme, and WordPress updates.
     977     *     @type int[]   $counts       An array of counts for available plugin, theme, and WordPress updates.
    978978     *     @type string  $update_title Titles of available updates.
    979979     * }
     
    987987 *
    988988 * @since 2.8.0
    989  *
    990  * @global string $wp_version The WordPress version string.
    991989 */
    992990function _maybe_update_core() {
Note: See TracChangeset for help on using the changeset viewer.