Make WordPress Core

Ticket #44546: 44546-2.patch

File 44546-2.patch, 1.5 KB (added by johannadevos, 4 years ago)

I refined the proposed documentation and added some extra documentation

  • src/wp-admin/includes/class-automatic-upgrader-skin.php

    diff --git a/src/wp-admin/includes/class-automatic-upgrader-skin.php b/src/wp-admin/includes/class-automatic-upgrader-skin.php
    index 9875c6dee5..32cef43dfb 100644
    a b  
    88 */
    99
    1010/**
    11  * Upgrader Skin for Automatic WordPress Upgrades
     11 * Upgrader Skin for Automatic WordPress Upgrades.
    1212 *
    1313 * This skin is designed to be used when no output is intended, all output
    1414 * is captured and stored for the caller to process and log/email/discard.
    class Automatic_Upgrader_Skin extends WP_Upgrader_Skin { 
    5252        }
    5353
    5454        /**
     55         * Gets the messages.
     56         *
    5557         * @return array
    5658         */
    5759        public function get_upgrade_messages() {
    class Automatic_Upgrader_Skin extends WP_Upgrader_Skin { 
    5961        }
    6062
    6163        /**
    62          * @param string|array|WP_Error $data
     64         * Adds feedback about the data to the messages.
     65         *
     66         * @param string|array|WP_Error $data    The data to give feedback on.
    6367         * @param mixed                 ...$args Optional text replacements.
    6468         */
    6569        public function feedback( $data, ...$args ) {
    class Automatic_Upgrader_Skin extends WP_Upgrader_Skin { 
    103107        }
    104108
    105109        /**
     110         * Creates a new output buffer and starts to write to it.
    106111         */
    107112        public function header() {
    108113                ob_start();
    109114        }
    110115
    111116        /**
     117         * Gets the current buffering contents, deletes the current output buffer, and applies feedback to the output.
    112118         */
    113119        public function footer() {
    114120                $output = ob_get_clean();