From 276917a6a6d38511e7c6eccc2e4434d16b68c705 Mon Sep 17 00:00:00 2001
From: jrfnl <jrfnl@users.noreply.github.com>
Date: Sat, 20 Jul 2019 06:48:03 +0200
Subject: [PATCH] Simplify wp_specialchars()
---
src/wp-includes/deprecated.php | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/wp-includes/deprecated.php b/src/wp-includes/deprecated.php
index ce12741fcc..60926e690c 100644
|
a
|
b
|
function js_escape( $text ) { |
| 2068 | 2068 | function wp_specialchars( $string, $quote_style = ENT_NOQUOTES, $charset = false, $double_encode = false ) { |
| 2069 | 2069 | _deprecated_function( __FUNCTION__, '2.8.0', 'esc_html()' ); |
| 2070 | 2070 | if ( func_num_args() > 1 ) { // Maintain back-compat for people passing additional arguments. |
| 2071 | | $args = func_get_args(); |
| 2072 | | return call_user_func_array( '_wp_specialchars', $args ); |
| | 2071 | return _wp_specialchars( $string, $quote_style, $charset, $double_encode ); |
| 2073 | 2072 | } else { |
| 2074 | 2073 | return esc_html( $string ); |
| 2075 | 2074 | } |