mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-14 01:24:27 +00:00
Docs: Replace multiple single line comments with multi-line comments.
This changeset updates various comments as per WordPress PHP Inline Documentation Standards. See https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#5-inline-comments. Follow-up to [56174], [56175], [56176], [56177], [56178], [56179]. Props costdev, audrasjb. See #58459. git-svn-id: https://develop.svn.wordpress.org/trunk@56180 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -651,8 +651,10 @@ function sanitize_comment_cookies() {
|
||||
function wp_allow_comment( $commentdata, $wp_error = false ) {
|
||||
global $wpdb;
|
||||
|
||||
// Simple duplicate check.
|
||||
// expected_slashed ($comment_post_ID, $comment_author, $comment_author_email, $comment_content)
|
||||
/*
|
||||
* Simple duplicate check.
|
||||
* expected_slashed ($comment_post_ID, $comment_author, $comment_author_email, $comment_content)
|
||||
*/
|
||||
$dupe = $wpdb->prepare(
|
||||
"SELECT comment_ID FROM $wpdb->comments WHERE comment_post_ID = %d AND comment_parent = %s AND comment_approved != 'trash' AND ( comment_author = %s ",
|
||||
wp_unslash( $commentdata['comment_post_ID'] ),
|
||||
@@ -1352,8 +1354,7 @@ function wp_check_comment_disallowed_list( $author, $email, $url, $comment, $use
|
||||
if ( empty( $word ) ) {
|
||||
continue; }
|
||||
|
||||
// Do some escaping magic so that '#' chars
|
||||
// in the spam words don't break things:
|
||||
// Do some escaping magic so that '#' chars in the spam words don't break things:
|
||||
$word = preg_quote( $word, '#' );
|
||||
|
||||
$pattern = "#$word#iu";
|
||||
|
||||
Reference in New Issue
Block a user