Make WordPress Core

Changeset 49061


Ignore:
Timestamp:
09/27/2020 08:34:51 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Docs: Add missing @return tags for some WP_Automatic_Updater methods:

  • ::is_vcs_checkout()
  • ::should_update()
  • ::send_core_update_notification_email()

Props ankitmaru, mukesh27.
Fixes #51385.

File:
1 edited

Legend:

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

    r48909 r49061  
    6363     * checkout somewhere.
    6464     *
    65      * ABSPATH is always checked in addition to whatever $context is (which may be the
     65     * ABSPATH is always checked in addition to whatever `$context` is (which may be the
    6666     * wp-content directory, for example). The underlying assumption is that if you are
    6767     * using version control *anywhere*, then you should be making decisions for
     
    7171     *
    7272     * @param string $context The filesystem path to check, in addition to ABSPATH.
     73     * @return bool True if a VCS checkout was discovered at `$context` or ABSPATH,
     74     *              or anywhere higher. False otherwise.
    7375     */
    7476    public function is_vcs_checkout( $context ) {
     
    113115         * @since 3.7.0
    114116         *
    115          * @param bool $checkout  Whether a VCS checkout was discovered at $context
     117         * @param bool $checkout  Whether a VCS checkout was discovered at `$context`
    116118         *                        or ABSPATH, or anywhere higher.
    117119         * @param string $context The filesystem context (a path) against which
     
    133135     * @param string $context The filesystem context (a path) against which filesystem
    134136     *                        access and status should be checked.
     137     * @return bool True if the item should be updated, false otherwise.
    135138     */
    136139    public function should_update( $type, $item, $context ) {
     
    243246     *
    244247     * @param object $item The update offer.
     248     * @return bool True if the site administrator is notified of a core update,
     249     *              false otherwise.
    245250     */
    246251    protected function send_core_update_notification_email( $item ) {
Note: See TracChangeset for help on using the changeset viewer.