Changeset 7378 for trunk/src/includes/common/shortcodes.php
- Timestamp:
- 11/22/2025 06:05:25 AM (4 months ago)
- File:
-
- 1 edited
-
trunk/src/includes/common/shortcodes.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/common/shortcodes.php
r7361 r7378 48 48 private function setup_globals() { 49 49 50 // phpcs:disable PEAR.Functions.FunctionCallSignature.CloseBracketLine 51 50 52 // Setup the shortcodes 51 $this->codes = apply_filters( 'bbp_shortcodes', array( 52 53 /** Forums ********************************************************/ 54 55 'bbp-forum-index' => array( $this, 'display_forum_index' ), // Forum Index 56 'bbp-forum-form' => array( $this, 'display_forum_form' ), // Topic form 57 'bbp-single-forum' => array( $this, 'display_forum' ), // Specific forum - pass an 'id' attribute 58 59 /** Topics ********************************************************/ 60 61 'bbp-topic-index' => array( $this, 'display_topic_index' ), // Topic index 62 'bbp-topic-form' => array( $this, 'display_topic_form' ), // Topic form 63 'bbp-single-topic' => array( $this, 'display_topic' ), // Specific topic - pass an 'id' attribute 64 65 /** Topic Tags ****************************************************/ 66 67 'bbp-topic-tags' => array( $this, 'display_topic_tags' ), // All topic tags in a cloud 68 'bbp-single-tag' => array( $this, 'display_topics_of_tag' ), // Topics of Tag 69 70 /** Replies *******************************************************/ 71 72 'bbp-reply-form' => array( $this, 'display_reply_form' ), // Reply form 73 'bbp-single-reply' => array( $this, 'display_reply' ), // Specific reply - pass an 'id' attribute 74 75 /** Views *********************************************************/ 76 77 'bbp-single-view' => array( $this, 'display_view' ), // Single view 78 79 /** Search ********************************************************/ 80 81 'bbp-search-form' => array( $this, 'display_search_form' ), // Search form 82 'bbp-search' => array( $this, 'display_search' ), // Search 83 84 /** Account *******************************************************/ 85 86 'bbp-login' => array( $this, 'display_login' ), // Login 87 'bbp-register' => array( $this, 'display_register' ), // Register 88 'bbp-lost-pass' => array( $this, 'display_lost_pass' ), // Lost Password 89 90 /** Others *******************************************************/ 91 92 'bbp-stats' => array( $this, 'display_stats' ), // Stats 93 ) ); 53 $this->codes = apply_filters( 54 'bbp_shortcodes', 55 array( 56 57 /** Forums ****************************************************/ 58 59 'bbp-forum-index' => array( $this, 'display_forum_index' ), // Forum Index 60 'bbp-forum-form' => array( $this, 'display_forum_form' ), // Topic form 61 'bbp-single-forum' => array( $this, 'display_forum' ), // Specific forum - pass an 'id' attribute 62 63 /** Topics ****************************************************/ 64 65 'bbp-topic-index' => array( $this, 'display_topic_index' ), // Topic index 66 'bbp-topic-form' => array( $this, 'display_topic_form' ), // Topic form 67 'bbp-single-topic' => array( $this, 'display_topic' ), // Specific topic - pass an 'id' attribute 68 69 /** Topic Tags ************************************************/ 70 71 'bbp-topic-tags' => array( $this, 'display_topic_tags' ), // All topic tags in a cloud 72 'bbp-single-tag' => array( $this, 'display_topics_of_tag' ), // Topics of Tag 73 74 /** Replies ***************************************************/ 75 76 'bbp-reply-form' => array( $this, 'display_reply_form' ), // Reply form 77 'bbp-single-reply' => array( $this, 'display_reply' ), // Specific reply - pass an 'id' attribute 78 79 /** Views *****************************************************/ 80 81 'bbp-single-view' => array( $this, 'display_view' ), // Single view 82 83 /** Search ****************************************************/ 84 85 'bbp-search-form' => array( $this, 'display_search_form' ), // Search form 86 'bbp-search' => array( $this, 'display_search' ), // Search 87 88 /** Account ***************************************************/ 89 90 'bbp-login' => array( $this, 'display_login' ), // Login 91 'bbp-register' => array( $this, 'display_register' ), // Register 92 'bbp-lost-pass' => array( $this, 'display_lost_pass' ), // Lost Password 93 94 /** Others ****************************************************/ 95 96 'bbp-stats' => array( $this, 'display_stats' ), // Stats 97 ) 98 ); 99 100 // phpcs:enable 94 101 } 95 102 … … 514 521 515 522 // Output the topic tags 516 wp_tag_cloud( array( 517 'smallest' => 9, 518 'largest' => 38, 519 'number' => 80, 520 'taxonomy' => bbp_get_topic_tag_tax_id() 521 ) ); 523 wp_tag_cloud( 524 array( 525 'smallest' => 9, 526 'largest' => 38, 527 'number' => 80, 528 'taxonomy' => bbp_get_topic_tag_tax_id() 529 ) 530 ); 522 531 523 532 // Return contents of output buffer … … 854 863 */ 855 864 public function display_topics_of_tag_query( $args = array() ) { 856 $args['tax_query'] = array( 865 $args['tax_query'] = array( 857 866 array( 858 867 'taxonomy' => bbp_get_topic_tag_tax_id(), 859 868 'field' => 'id', 860 869 'terms' => bbpress()->current_topic_tag_id 861 ) 870 ) 862 871 ); 863 872
Note: See TracChangeset
for help on using the changeset viewer.