src/wp-admin/includes/class-automatic-upgrader-skin.php 1 location
|
@@ 75-80 (lines=6) @@
|
| 72 |
|
if ( ! empty( $this->upgrader->strings[ $string ] ) ) |
| 73 |
|
$string = $this->upgrader->strings[ $string ]; |
| 74 |
|
|
| 75 |
|
if ( strpos( $string, '%' ) !== false ) { |
| 76 |
|
$args = func_get_args(); |
| 77 |
|
$args = array_splice( $args, 1 ); |
| 78 |
|
if ( ! empty( $args ) ) |
| 79 |
|
$string = vsprintf( $string, $args ); |
| 80 |
|
} |
| 81 |
|
|
| 82 |
|
$string = trim( $string ); |
| 83 |
|
|
src/wp-admin/includes/class-wp-ajax-upgrader-skin.php 1 location
|
@@ 93-99 (lines=7) @@
|
| 90 |
|
$string = $this->upgrader->strings[ $string ]; |
| 91 |
|
} |
| 92 |
|
|
| 93 |
|
if ( false !== strpos( $string, '%' ) ) { |
| 94 |
|
$args = func_get_args(); |
| 95 |
|
$args = array_splice( $args, 1 ); |
| 96 |
|
if ( ! empty( $args ) ) { |
| 97 |
|
$string = vsprintf( $string, $args ); |
| 98 |
|
} |
| 99 |
|
} |
| 100 |
|
|
| 101 |
|
// Count existing errors to generate an unique error code. |
| 102 |
|
$errors_count = count( $errors->get_error_codes() ); |