Changeset 8906
- Timestamp:
- 06/03/2019 02:36:38 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-participation-notifier/wordcamp-participation-notifier.php
r7684 r8906 45 45 46 46 if ( 'publish' == $new_status && 'publish' == $old_status ) { 47 $this->published_ speaker_post_updated( $post );47 $this->published_post_updated( $post ); 48 48 } elseif ( 'publish' == $new_status || 'publish' == $old_status ) { 49 $this-> speaker_post_published_or_unpublished( $new_status, $old_status, $post );49 $this->post_published_or_unpublished( $new_status, $old_status, $post ); 50 50 } 51 51 } … … 117 117 * @param WP_Post $post 118 118 */ 119 protected function published_ speaker_post_updated( $post ) {119 protected function published_post_updated( $post ) { 120 120 $previous_user_id = $this->get_saved_wporg_user_id( $post ); 121 121 $new_user_id = $this->get_new_wporg_user_id( $post ); … … 157 157 * @param WP_Post $post 158 158 */ 159 protected function speaker_post_published_or_unpublished( $new_status, $old_status, $post ) {159 protected function post_published_or_unpublished( $new_status, $old_status, $post ) { 160 160 if ( 'publish' == $new_status ) { 161 161 $this->remote_post( self::PROFILES_HANDLER_URL, $this->get_post_activity_payload( $post ) );
Note: See TracChangeset
for help on using the changeset viewer.