wp/wp-admin/includes/class-automatic-upgrader-skin.php
changeset 21 48c4eec2b7e6
parent 19 3d72ae0968f4
equal deleted inserted replaced
20:7b1b88e27a20 21:48c4eec2b7e6
    82 
    82 
    83 		if ( ! empty( $this->upgrader->strings[ $string ] ) ) {
    83 		if ( ! empty( $this->upgrader->strings[ $string ] ) ) {
    84 			$string = $this->upgrader->strings[ $string ];
    84 			$string = $this->upgrader->strings[ $string ];
    85 		}
    85 		}
    86 
    86 
    87 		if ( strpos( $string, '%' ) !== false ) {
    87 		if ( str_contains( $string, '%' ) ) {
    88 			if ( ! empty( $args ) ) {
    88 			if ( ! empty( $args ) ) {
    89 				$string = vsprintf( $string, $args );
    89 				$string = vsprintf( $string, $args );
    90 			}
    90 			}
    91 		}
    91 		}
    92 
    92