Make WordPress Core


Ignore:
Timestamp:
02/07/2026 06:05:09 AM (4 months ago)
Author:
westonruter
Message:

Docs: Add descriptions and improved typing to @return tags in various admin and includes files.

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

Props huzaifaalmesbah, westonruter, noruzzaman, mukesh27.
See #64224.

File:
1 edited

Legend:

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

    r61455 r61594  
    3535 * @param array $options Set $options['dismissed'] to true to show dismissed upgrades too,
    3636 *                       set $options['available'] to false to skip not-dismissed updates.
    37  * @return array|false Array of the update objects on success, false on failure.
     37 * @return array<object>|false Array of the update objects on success, false on failure.
    3838 */
    3939function get_core_updates( $options = array() ) {
     
    127127 * @param string $version Version string to query.
    128128 * @param string $locale  Locale to query.
    129  * @return array|false An array of checksums on success, false on failure.
     129 * @return array<string, string>|false An array of checksums on success, false on failure.
    130130 */
    131131function get_core_checksums( $version, $locale ) {
     
    179179 *
    180180 * @param object $update
    181  * @return bool
     181 * @return bool True if the option was updated, false otherwise.
    182182 */
    183183function dismiss_core_update( $update ) {
     
    195195 * @param string $version
    196196 * @param string $locale
    197  * @return bool
     197 * @return bool True if the option was updated, false otherwise.
    198198 */
    199199function undismiss_core_update( $version, $locale ) {
     
    243243 *
    244244 * @param string $msg
    245  * @return string
     245 * @return string The core update footer message.
    246246 */
    247247function core_update_footer( $msg = '' ) {
     
    298298 *
    299299 * @global string $pagenow The filename of the current screen.
    300  * @return void|false
     300 * @return void|false Void on success, false if the update nag should not be displayed.
    301301 */
    302302function update_nag() {
     
    402402 * @since 2.9.0
    403403 *
    404  * @return object[]
     404 * @return array<string, object> Array of plugin objects with available updates.
    405405 */
    406406function get_plugin_updates() {
     
    447447 * @param string $file        Plugin basename.
    448448 * @param array  $plugin_data Plugin information.
    449  * @return void|false
     449 * @return void|false Void on success, false if the plugin update is not available.
    450450 */
    451451function wp_plugin_update_row( $file, $plugin_data ) {
     
    625625 * @since 2.9.0
    626626 *
    627  * @return WP_Theme[]
     627 * @return array<string, WP_Theme> Array of theme objects with available updates.
    628628 */
    629629function get_theme_updates() {
     
    672672 * @param string   $theme_key Theme stylesheet.
    673673 * @param WP_Theme $theme     Theme object.
    674  * @return void|false
     674 * @return void|false Void on success, false if the theme update is not available.
    675675 */
    676676function wp_theme_update_row( $theme_key, $theme ) {
     
    849849 * @global int $upgrading
    850850 *
    851  * @return void|false
     851 * @return void|false Void on success, false if the maintenance nag should not be displayed.
    852852 */
    853853function maintenance_nag() {
Note: See TracChangeset for help on using the changeset viewer.