Making WordPress.org


Ignore:
Timestamp:
07/22/2022 02:09:19 PM (4 years ago)
Author:
amieiro
Message:

Sync the gp-translation-helpers with GitHub, main branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/includes/class-gp-notifications.php

    r11921 r11992  
    326326                 */
    327327                $email_addresses = apply_filters( 'gp_notification_before_send_emails', $email_addresses );
    328                 if ( ( null === $comment ) || ( null === $comment_meta ) || ( empty( $email_addresses ) ) ) {
     328                if ( null === $comment || null === $comment_meta || empty( $email_addresses ) ) {
    329329                        return false;
    330330                }
    331                 $original        = self::get_original( $comment );
     331                $original = self::get_original( $comment );
     332                if ( ! $original ) {
     333                        return false;
     334                }
    332335                $email_addresses = self::remove_commenter_email_address( $comment, $email_addresses );
    333336                $email_addresses = self::remove_optout_discussion_email_addresses( $original->id, $email_addresses );
Note: See TracChangeset for help on using the changeset viewer.