- Timestamp:
- 09/15/2019 10:41:03 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-automatic-upgrader-skin.php
r43571 r46125 59 59 /** 60 60 * @param string|array|WP_Error $data 61 * @param mixed ...$args Optional text replacements. 61 62 */ 62 public function feedback( $data ) {63 public function feedback( $data, ...$args ) { 63 64 if ( is_wp_error( $data ) ) { 64 65 $string = $data->get_error_message(); … … 73 74 74 75 if ( strpos( $string, '%' ) !== false ) { 75 $args = func_get_args();76 $args = array_splice( $args, 1 );77 76 if ( ! empty( $args ) ) { 78 77 $string = vsprintf( $string, $args );
Note: See TracChangeset
for help on using the changeset viewer.