upgrader->strings[ $string ] ) ) { $string = $this->upgrader->strings[ $string ]; } if ( false !== strpos( $string, '%' ) ) { $args = func_get_args(); $args = array_splice( $args, 1 ); if ( $args ) { $args = array_map( 'strip_tags', $args ); $args = array_map( 'esc_html', $args ); $string = vsprintf( $string, $args ); } } if ( empty( $string ) ) { return; } $this->messages[] = $string; } /** * Set the error flag to true, then let the base class handle the rest. * * @param mixed $errors */ public function error( $errors ) { $this->error = true; parent::error( $errors ); } /** * Do nothing. * * @param mixed $type */ protected function decrement_update_count( $type ) { } /** * Do nothing. */ public function header() { } /** * Do nothing. */ public function footer() { } }