Changeset 707 for sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc/email-post-changes.php
- Timestamp:
- 06/17/2014 12:38:46 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc/email-post-changes.php
r705 r707 7 7 class WPorg_Handbook_Email_Post_Changes { 8 8 9 function init() {9 public static function init() { 10 10 add_action( 'widgets_init', array( __CLASS__, 'handbook_sidebar' ), 11 ); // After P2 11 11 add_filter( 'email_post_changes_emails', array( __CLASS__, 'email_post_changes_emails' ), 10, 3 ); … … 14 14 } 15 15 16 function handbook_sidebar() { 17 16 public static function handbook_sidebar() { 18 17 require_once dirname( __FILE__ ) . '/widgets.php'; 19 18 register_widget( 'WPorg_Handbook_Widget' ); 20 19 } 21 20 22 function option_email_post_changes( $values ) {21 public static function option_email_post_changes( $values ) { 23 22 $values['post_types'] = apply_filters( 'wporg_email_changes_for_post_types', $values['post_types'] ); 24 23 return $values; 25 24 } 26 25 27 function email_post_changes_emails( $emails, $post_before, $post_after ) {26 public static function email_post_changes_emails( $emails, $post_before, $post_after ) { 28 27 $post = get_post( $post_after ); 29 28 $users = get_post_meta( $post->ID, '_wporg_watchlist', true ); … … 38 37 } 39 38 40 function update_watchlist() {39 public static function update_watchlist() { 41 40 $post_id = absint( $_GET['post_id'] ); 42 41 if ( ! $post_id || ! $post = get_post( $post_id ) ) {
Note: See TracChangeset
for help on using the changeset viewer.