wp_magic_quotes [ WordPress Function ]
wp_magic_quotes ( No parameters )
| Access: |
|
| Defined at: |
|
Soorgelijke functies: add_magic_quotes, wp_favicon_request, is_main_query, wp_plugin_update_rows, wp_get_post_terms
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.
Source
<?php
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 );
$_COOKIE = add_magic_quotes( $_COOKIE );
$_SERVER = add_magic_quotes( $_SERVER );
// Force REQUEST to be GET + POST.
$_REQUEST = array_merge( $_GET, $_POST );
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- PHPXRef 0.7 : WordPress : Function Reference: wp_magic_quotes()
wp_magic_quotes(). Defined at: /wp-includes/load.php -> line 522. Referenced 2 times: /wp-settings.php -> line 218 · /wp-admin/setup-config.php -> line 61 ...
phpxref.ftwr.co.uk - wp_magic_quotes() WordPress function reference, arguments and ...
Add magic quotes to $_GET, $_POST, $_COOKIE, and $_SERVER.
queryposts.com - WordPress › Support » Tags — wp_magic_quotes
Forums. Username or Email Address Password (forgot?) Register · WordPress › Support » wp_magic_quotes. Tag: wp_magic_quotes Add New » ...
wordpress.org - [wp-hackers] wp_magic_quotes makes me sad panda
[wp-hackers] wp_magic_quotes makes me sad panda. Peter Westwood peter. westwood at ftwr.co.uk. Fri Oct 1 10:54:30 UTC 2010. Previous message: ...
lists.automattic.com