Make WordPress Core

Ticket #48514: pluggable.php.diff

File pluggable.php.diff, 719 bytes (added by sgoen, 5 years ago)

patch for pluggable.php

  • wp-includes/pluggable.php

    diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php
    index 3b81242f4d..d9d0706715 100644
    a b if ( ! function_exists( 'wp_notify_moderator' ) ) : 
    17391739                        $comment_author_domain = gethostbyaddr( $comment->comment_author_IP );
    17401740                }
    17411741
    1742                 $comments_waiting = $wpdb->get_var( "SELECT count(comment_ID) FROM $wpdb->comments WHERE comment_approved = '0'" );
     1742                $comments_waiting = $wpdb->get_var( "SELECT count(*) FROM $wpdb->comments WHERE comment_approved = '0'" );
    17431743
    17441744                // The blogname option is escaped with esc_html on the way into the database in sanitize_option
    17451745                // we want to reverse this for the plain text arena of emails.