Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



wp_magic_quotes ›

Seit3.0.0
Veraltetn/v
wp_magic_quotes ( Keine Parameter )
Zugriff:
  • private
Definiert in:
Codex:

Add magic quotes to `$_GET`, `$_POST`, `$_COOKIE`, and `$_SERVER`.

Also forces $_REQUEST to be $_GET + $_POST. If $_SERVER, $_COOKIE, or $_ENV are needed, use those superglobals directly.



Quellcode

function wp_magic_quotes() {
	// Escape with wpdb.
	$_GET    = add_magic_quotes( $_GET );
	$_POST   = add_magic_quotes( $_POST );
	$_COOKIE = add_magic_quotes( $_COOKIE );
	$_SERVER = add_magic_quotes( $_SERVER );

	// Force REQUEST to be GET + POST.
	$_REQUEST = array_merge( $_GET, $_POST );
}