mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
GENERAL: Remove magic quote functions
The path to magic quote sanity took a fun and exciting turn: PHP core removed it and WordPress updated the minimum version. For the formally external pclzip, the code is commented out to make investigating easier and in case we ever need to merge upstream (if that still exists) changes. Props ayeshrajans, jrf, jorbin. See #47783. Fixes #18322. git-svn-id: https://develop.svn.wordpress.org/trunk@46105 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -925,13 +925,6 @@ function wp_set_internal_encoding() {
|
||||
* @access private
|
||||
*/
|
||||
function wp_magic_quotes() {
|
||||
// If already slashed, strip.
|
||||
if ( get_magic_quotes_gpc() ) {
|
||||
$_GET = stripslashes_deep( $_GET );
|
||||
$_POST = stripslashes_deep( $_POST );
|
||||
$_COOKIE = stripslashes_deep( $_COOKIE );
|
||||
}
|
||||
|
||||
// Escape with wpdb.
|
||||
$_GET = add_magic_quotes( $_GET );
|
||||
$_POST = add_magic_quotes( $_POST );
|
||||
|
||||
Reference in New Issue
Block a user