Changeset 35339 for trunk/src/wp-includes/pluggable.php
- Timestamp:
- 10/21/2015 06:34:06 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pluggable.php
r35170 r35339 1562 1562 if ( !function_exists('wp_notify_moderator') ) : 1563 1563 /** 1564 * Notifies the moderator of the blogabout a new comment that is awaiting approval.1564 * Notifies the moderator of the site about a new comment that is awaiting approval. 1565 1565 * 1566 1566 * @since 1.0.0 … … 1568 1568 * @global wpdb $wpdb WordPress database abstraction object. 1569 1569 * 1570 * @param int $comment_id Comment ID 1571 * @return true Always returns true 1570 * Uses the {@see 'notify_moderator'} filter to determine whether the site moderator 1571 * should be notified, overriding the site setting. 1572 * 1573 * @param int $comment_id Comment ID. 1574 * @return true Always returns true. 1572 1575 */ 1573 1576 function wp_notify_moderator($comment_id) { 1574 1577 global $wpdb; 1575 1578 1576 if ( 0 == get_option( 'moderation_notify' ) ) 1579 $maybe_notify = get_option( 'moderation_notify' ); 1580 1581 /** 1582 * Filter whether to send the site moderator email notifications, overriding the site setting. 1583 * 1584 * @since 4.4.0 1585 * 1586 * @param bool $maybe_notify Whether to notify blog moderator. 1587 * @param int $comment_ID The id of the comment for the notification. 1588 */ 1589 $maybe_notify = apply_filters( 'notify_moderator', $maybe_notify, $comment_id ); 1590 1591 if ( ! $maybe_notify ) { 1577 1592 return true; 1593 } 1578 1594 1579 1595 $comment = get_comment($comment_id); … … 2173 2189 $use_random_int_functionality = false; 2174 2190 } 2175 } catch ( Throwable $t ) { 2191 } catch ( Throwable $t ) { 2176 2192 $use_random_int_functionality = false; 2177 2193 } catch ( Exception $e ) {
Note: See TracChangeset
for help on using the changeset viewer.