wp/wp-admin/includes/class-wp-ajax-upgrader-skin.php
changeset 18 be944660c56a
parent 16 a86126ab1dd4
child 19 3d72ae0968f4
equal deleted inserted replaced
17:34716fd837a4 18:be944660c56a
    79 
    79 
    80 		return implode( ', ', $messages );
    80 		return implode( ', ', $messages );
    81 	}
    81 	}
    82 
    82 
    83 	/**
    83 	/**
    84 	 * Stores a log entry for an error.
    84 	 * Stores an error message about the upgrade.
    85 	 *
    85 	 *
    86 	 * @since 4.6.0
    86 	 * @since 4.6.0
    87 	 * @since 5.3.0 Formalized the existing `...$args` parameter by adding it
    87 	 * @since 5.3.0 Formalized the existing `...$args` parameter by adding it
    88 	 *              to the function signature.
    88 	 *              to the function signature.
    89 	 *
    89 	 *
   114 
   114 
   115 		parent::error( $errors, ...$args );
   115 		parent::error( $errors, ...$args );
   116 	}
   116 	}
   117 
   117 
   118 	/**
   118 	/**
   119 	 * Stores a log entry.
   119 	 * Stores a message about the upgrade.
   120 	 *
   120 	 *
   121 	 * @since 4.6.0
   121 	 * @since 4.6.0
   122 	 * @since 5.3.0 Formalized the existing `...$args` parameter by adding it
   122 	 * @since 5.3.0 Formalized the existing `...$args` parameter by adding it
   123 	 *              to the function signature.
   123 	 *              to the function signature.
   124 	 *
   124 	 *
   125 	 * @param string|array|WP_Error $data    Log entry data.
   125 	 * @param string|array|WP_Error $data    Message data.
   126 	 * @param mixed                 ...$args Optional text replacements.
   126 	 * @param mixed                 ...$args Optional text replacements.
   127 	 */
   127 	 */
   128 	public function feedback( $data, ...$args ) {
   128 	public function feedback( $data, ...$args ) {
   129 		if ( is_wp_error( $data ) ) {
   129 		if ( is_wp_error( $data ) ) {
   130 			foreach ( $data->get_error_codes() as $error_code ) {
   130 			foreach ( $data->get_error_codes() as $error_code ) {