Make WordPress Core

Changeset 63494


Ignore:
Timestamp:
09/05/2026 09:26:27 AM (2 months ago)
Author:
wildworks
Message:

Docs: Align @param tag columns in upgrade, plugin, and theme docblocks.

Aligns @param tag columns in docblocks across the upgrade, plugin, and theme code per the PHP inline documentation standards.

Developed in: ​https://github.com/WordPress/wordpress-develop/pull/13313

Props mukesh27, wildworks.
See #65818.

Location:
trunk/src
Files:
10 edited

Legend:

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

    r62894 r63494  
    171171                 * @since 3.7.0
    172172                 *
    173                  * @param bool $checkout Whether a VCS checkout was discovered at `$context`
    174                  *                        or ABSPATH, or anywhere higher.
    175                  * @param string $context The filesystem context (a path) against which
    176                  *                        filesystem status should be checked.
     173                 * @param bool   $checkout Whether a VCS checkout was discovered at `$context`
     174                 *                         or ABSPATH, or anywhere higher.
     175                 * @param string $context  The filesystem context (a path) against which
     176                 *                         filesystem status should be checked.
    177177                 */
    178178                return apply_filters( 'automatic_updates_is_vcs_checkout', $checkout, $context );
    … …  
    11311131                 * @since 3.7.0
    11321132                 *
    1133                  * @param array $email {
     1133                 * @param array  $email {
    11341134                 *     Array of email arguments that will be passed to wp_mail().
    11351135                 *
  • trunk/src/wp-admin/includes/class-wp-site-health-auto-updates.php

    r59340 r63494  
    6464         * @since 5.5.1 The `$value` parameter can accept an array.
    6565         *
    66          * @param string $constant        The name of the constant to check.
    67          * @param bool|string|array $value The value that the constant should be, if set,
    68          *                                 or an array of acceptable values.
     66         * @param string            $constant The name of the constant to check.
     67         * @param bool|string|array $value    The value that the constant should be, if set,
     68         *                                    or an array of acceptable values.
    6969         * @return array|null The test results if there are any constants set incorrectly,
    7070         *                    or null if the test passed.
  • trunk/src/wp-admin/includes/plugin-install.php

    r62697 r63494  
    896896 *
    897897 * @param string       $name           Plugin name.
    898  * @param array|object $data           {
     898 * @param array|object $data {
    899899 *     An array or object of plugin data. Can be retrieved from the API.
    900900 *
    … …  
    903903 *     @type string   $version          The plugin's version string. Used when getting the install status.
    904904 * }
    905  * @param bool         $compatible_php   The result of a PHP compatibility check.
    906  * @param bool         $compatible_wp    The result of a WP compatibility check.
     905 * @param bool         $compatible_php The result of a PHP compatibility check.
     906 * @param bool         $compatible_wp  The result of a WP compatibility check.
    907907 * @return string The markup for the dependency row button. An empty string if the user does not have capabilities.
    908908 */
  • trunk/src/wp-admin/includes/plugin.php

    r62179 r63494  
    12651265         *
    12661266         * @param bool|WP_Error $met_requirements True if the plugin meets requirements, WP_Error if not.
    1267          * @param string $plugin Path to the plugin file relative to the plugins directory.
     1267         * @param string        $plugin          Path to the plugin file relative to the plugins directory.
    12681268         */
    12691269        return apply_filters( 'validate_plugin_requirements', true, $plugin );
  • trunk/src/wp-admin/includes/theme.php

    r61716 r63494  
    158158 * @access private
    159159 *
    160  * @param string $fullpath Full path to the theme file
     160 * @param string $fullpath         Full path to the theme file
    161161 * @param string $containingfolder Path of the theme parent folder
    162162 * @return string
  • trunk/src/wp-admin/includes/upgrade.php

    r63344 r63494  
    622622                 * @since 5.6.0
    623623                 *
    624                  * @param array $installed_email {
     624                 * @param array   $installed_email {
    625625                 *     Used to build wp_mail().
    626626                 *
    … …  
    630630                 *     @type string $headers Headers.
    631631                 * }
    632                  * @param WP_User $user          The site administrator user object.
    633                  * @param string  $blog_title    The site title.
    634                  * @param string  $blog_url      The site URL.
    635                  * @param string  $password      The site administrator's password. Note that a placeholder message
    636                  *                               is usually passed instead of the user's actual password.
     632                 * @param WP_User $user            The site administrator user object.
     633                 * @param string  $blog_title      The site title.
     634                 * @param string  $blog_url        The site URL.
     635                 * @param string  $password        The site administrator's password. Note that a placeholder message
     636                 *                                 is usually passed instead of the user's actual password.
    637637                 */
    638638                $installed_email = apply_filters( 'wp_installed_email', $installed_email, $user, $blog_title, $blog_url, $password );
  • trunk/src/wp-content/themes/twentyfourteen/functions.php

    r63211 r63494  
    681681 *
    682682 * @param string $title Default title text for current view.
    683  * @param string $sep Optional separator.
     683 * @param string $sep   Optional separator.
    684684 * @return string The filtered title.
    685685 */
  • trunk/src/wp-content/themes/twentytwelve/functions.php

    r63211 r63494  
    310310 *
    311311 * @param string $title Default title text for current view.
    312  * @param string $sep Optional separator.
     312 * @param string $sep   Optional separator.
    313313 * @return string Filtered title.
    314314 */
  • trunk/src/wp-includes/class-wp-theme.php

    r62810 r63494  
    247247         * @param string        $theme_dir  Directory of the theme within the theme_root.
    248248         * @param string        $theme_root Theme root.
    249          * @param WP_Theme|null $_child If this theme is a parent theme, the child may be passed for validation purposes.
     249         * @param WP_Theme|null $_child     If this theme is a parent theme, the child may be passed for validation purposes.
    250250         */
    251251        public function __construct( $theme_dir, $theme_root, $_child = null ) {
  • trunk/src/wp-includes/theme.php

    r63320 r63494  
    10111011         *
    10121012         * @param bool|WP_Error $met_requirements True if the theme meets requirements, WP_Error if not.
    1013          * @param string $stylesheet Directory name for the theme.
     1013         * @param string        $stylesheet      Directory name for the theme.
    10141014         */
    10151015        return apply_filters( 'validate_theme_requirements', true, $stylesheet );
Note: See TracChangeset for help on using the changeset viewer.