sanitize_comment_cookies [ WordPress Function ]
sanitize_comment_cookies ( No parameters )
| Defined at: |
|
Benzer Fonksiyonlar: wp_set_comment_cookies, sanitize_mime_type, sanitize_text_field, sanitize_meta, sanitize_post_field
Sanitizes the cookies sent to the user already.
Will only do anything if the cookies have already been created for the user. Mostly used after cookies had been sent to use elsewhere.
Source
<?php
function sanitize_comment_cookies() {
if ( isset($_COOKIE['comment_author_'.COOKIEHASH]) ) {
$comment_author = apply_filters('pre_comment_author_name', $_COOKIE['comment_author_'.COOKIEHASH]);
$comment_author = stripslashes($comment_author);
$comment_author = esc_attr($comment_author);
$_COOKIE['comment_author_'.COOKIEHASH] = $comment_author;
}
if ( isset($_COOKIE['comment_author_email_'.COOKIEHASH]) ) {
$comment_author_email = apply_filters('pre_comment_author_email', $_COOKIE['comment_author_email_'.COOKIEHASH]);
$comment_author_email = stripslashes($comment_author_email);
$comment_author_email = esc_attr($comment_author_email);
$_COOKIE['comment_author_email_'.COOKIEHASH] = $comment_author_email;
}
if ( isset($_COOKIE['comment_author_url_'.COOKIEHASH]) ) {
$comment_author_url = apply_filters('pre_comment_author_url', $_COOKIE['comment_author_url_'.COOKIEHASH]);
$comment_author_url = stripslashes($comment_author_url);
$_COOKIE['comment_author_url_'.COOKIEHASH] = $comment_author_url;
}
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- Function Reference/sanitize comment cookies « WordPress Codex
Description. Sanitizes the cookies sent to the user already. Will only do anything if the cookies have already been created for the user. Mostly used after cookies ...
codex.wordpress.org - sanitize_comment_cookies Wordpress hook details -- Adam Brown ...
WordPress version history for sanitize_comment_cookies. This database has information for all major versions from WP 1.2.1 through 3.3.
adambrown.info - sanitize_comment_cookies - A HitchHackers guide through ...
Aug 1, 2011 ... This small plugin allows you to disable the normal wp-cron processing that is usually hooked into the sanitize_comment_cookies [...] ...
hitchhackerguide.com - sanitize_comment_cookies | A HitchHackers guide through WordPress
Feb 12, 2011 ... Source code. function sanitize_comment_cookies() { if ( isset($_COOKIE[' comment_author_'.COOKIEHASH]) ) { $comment_author ...
hitchhackerguide.com