Ticket #5031: 5031.diff
File 5031.diff, 1.6 KB (added by , 5 years ago) |
---|
-
class-hooks.php
18 18 add_filter( 'old_slug_redirect_post_id', array( $this, 'disable_wp_old_slug_redirect' ) ); 19 19 add_action( 'template_redirect', array( $this, 'redirect_update_php_page' ) ); 20 20 add_action( 'template_redirect', array( $this, 'redirect_legacy_user_structure' ) ); 21 add_filter( 'wp_insert_post_data', array( $this, 'set_post_date_gmt_for_pending_posts' ) );21 add_filter( 'wp_insert_post_data', array( $this, 'set_post_date_gmt_for_pending_posts' ) ); 22 22 add_action( 'wp_print_footer_scripts', array( $this, 'replace_quicktags_blockquote_button' ) ); 23 23 24 24 // Output rel="canonical" meta tag. Runs before WP's rel_canonical to unhook that if needed. … … 631 631 632 632 echo '<div class="bbp-create-topic-wrapper">'; 633 633 if ( $searchform ) { 634 printf( 635 /* translators: 1: markup for forums search field which is primary action, 2: markup for button to create topic */ 636 __( '%1$s or %2$s', 'wporg-forums' ), 637 $searchform, 638 $btn 639 ); 634 635 // We already have a review button in the control rendered above this one. 636 if( ! $is_reviews ) { 637 printf( 638 /* translators: 1: markup for forums search field which is primary action, 2: markup for button to create topic */ 639 __( '%1$s or %2$s', 'wporg-forums' ), 640 $searchform, 641 $btn 642 ); 643 } else { 644 echo $searchform; 645 } 640 646 } else { 641 647 echo $btn; 642 648 }