Changeset 5638 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/functions.php
- Timestamp:
- 07/09/2017 04:32:00 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/functions.php
r5637 r5638 543 543 add_filter( 'bbp_get_topic_edit_url', 'wporg_support_fix_pending_posts_reply_url', 10, 2 ); 544 544 add_filter( 'bbp_get_reply_edit_url', 'wporg_support_fix_pending_posts_reply_url', 10, 2 ); 545 546 /** 547 * Set 'is_single' query var to true on single replies. 548 * 549 * @see https://meta.trac.wordpress.org/ticket/2551 550 * @see https://bbpress.trac.wordpress.org/ticket/3055 551 * 552 * @param array $args Theme compat query vars. 553 * @return array 554 */ 555 function wporg_support_set_is_single_on_single_replies( $args ) { 556 if ( bbp_is_single_reply() ) { 557 $args['is_single'] = true; 558 } 559 560 return $args; 561 } 562 add_filter( 'bbp_after_theme_compat_reset_post_parse_args', 'wporg_support_set_is_single_on_single_replies' ); 545 563 546 564
Note: See TracChangeset
for help on using the changeset viewer.