[wp-cvs] wordpress/wp-includes functions.php,1.162,1.163

Donncha O Caoimh donncha at users.sourceforge.net
Fri Sep 17 10:26:36 UTC 2004


Update of /cvsroot/cafelog/wordpress/wp-includes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22350

Modified Files:
	functions.php 
Log Message:
Check for moderation_notify flag before notifying moderator that about
held comments.


Index: functions.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-includes/functions.php,v
retrieving revision 1.162
retrieving revision 1.163
diff -C2 -d -r1.162 -r1.163
*** functions.php	17 Sep 2004 08:39:12 -0000	1.162
--- functions.php	17 Sep 2004 10:26:34 -0000	1.163
***************
*** 928,931 ****
--- 928,934 ----
      global $wpdb;
      global $querystring_start, $querystring_equal, $querystring_separator;
+ 
+     if( get_settings( "moderation_notify" ) == 0 )
+         return true; 
      
      $comment = $wpdb->get_row("SELECT * FROM $wpdb->comments WHERE comment_ID='$comment_id' LIMIT 1");
***************
*** 1613,1615 ****
  }
  
! ?>
\ No newline at end of file
--- 1616,1618 ----
  }
  
! ?>




More information about the cvs mailing list