Changeset 6423
- Timestamp:
- 01/24/2018 07:13:02 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/class-o2-follow.php
r6421 r6423 183 183 */ 184 184 public function subscribe_o2_register_post_action_states() { 185 if ( !function_exists( 'o2_register_post_action_states' ) ) {185 if ( function_exists( 'o2_register_post_action_states' ) ) { 186 186 o2_register_post_action_states( 'follow', [ 187 187 'normal' => [ … … 280 280 } 281 281 282 if ( 'post-comment-subscribe' !== $_GET['action'] ) { 283 die; 284 } 285 286 $this->subscribe_to_comments( $post_id ); 282 if ( 'post-comment-subscribe' === $_GET['action'] ) { 283 $this->subscribe_to_comments( $post_id ); 284 } 285 286 // Echo success if this was an AJAX request, otherwise redirect. 287 if ( isset( $_GET['ajax'] ) ) { 288 echo '1'; 289 } else { 290 wp_safe_redirect( get_permalink( $post_id ) ); 291 } 287 292 die; 288 293 }
Note: See TracChangeset
for help on using the changeset viewer.