diff -r c7c34916027a -r 177826044cd9 wp/wp-admin/includes/class-automatic-upgrader-skin.php --- a/wp/wp-admin/includes/class-automatic-upgrader-skin.php Mon Oct 14 18:06:33 2019 +0200 +++ b/wp/wp-admin/includes/class-automatic-upgrader-skin.php Mon Oct 14 18:28:13 2019 +0200 @@ -50,7 +50,6 @@ } /** - * * @return array */ public function get_upgrade_messages() { @@ -58,7 +57,6 @@ } /** - * * @param string|array|WP_Error $data */ public function feedback( $data ) { @@ -69,30 +67,36 @@ } else { $string = $data; } - if ( ! empty( $this->upgrader->strings[ $string ] ) ) + if ( ! empty( $this->upgrader->strings[ $string ] ) ) { $string = $this->upgrader->strings[ $string ]; + } if ( strpos( $string, '%' ) !== false ) { $args = func_get_args(); $args = array_splice( $args, 1 ); - if ( ! empty( $args ) ) + if ( ! empty( $args ) ) { $string = vsprintf( $string, $args ); + } } $string = trim( $string ); // Only allow basic HTML in the messages, as it'll be used in emails/logs rather than direct browser output. - $string = wp_kses( $string, array( - 'a' => array( - 'href' => true - ), - 'br' => true, - 'em' => true, - 'strong' => true, - ) ); + $string = wp_kses( + $string, + array( + 'a' => array( + 'href' => true, + ), + 'br' => true, + 'em' => true, + 'strong' => true, + ) + ); - if ( empty( $string ) ) + if ( empty( $string ) ) { return; + } $this->messages[] = $string; } @@ -107,7 +111,8 @@ */ public function footer() { $output = ob_get_clean(); - if ( ! empty( $output ) ) + if ( ! empty( $output ) ) { $this->feedback( $output ); + } } }