Changeset 5609 for sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-hooks.php
- Timestamp:
- 06/30/2017 03:00:20 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-hooks.php
r5608 r5609 53 53 * @return string Checked value of topic subscription. 54 54 */ 55 function check_topic_subscription_checkbox( $checked ) {55 public function check_topic_subscription_checkbox( $checked ) { 56 56 if ( bbp_is_single_forum() || bbp_is_single_view() ) { 57 57 $checked = checked( true, true, false ); … … 69 69 * @param WP_Query $query Current query object. 70 70 */ 71 function hide_non_public_forums( $query ) {71 public function hide_non_public_forums( $query ) { 72 72 if ( ! is_admin() && 'forum' === $query->get( 'post_type' ) ) { 73 73 $query->set( 'post_status', 'publish' ); … … 80 80 * @return int Filtered edit lock time. 81 81 */ 82 function increase_edit_lock_time() {82 public function increase_edit_lock_time() { 83 83 return 60; 84 84 } … … 93 93 * @return string Filtered redirect URL. 94 94 */ 95 function disable_redirect_guess_404_permalink( $redirect_url ) {95 public function disable_redirect_guess_404_permalink( $redirect_url ) { 96 96 if ( is_404() && 'topic' === get_query_var( 'post_type' ) && get_query_var( 'name' ) ) { 97 97 $hidden_topic = get_posts( array( … … 174 174 * @return string Filtered content. 175 175 */ 176 function make_mentions_clickable( $text = '' ) {176 public function make_mentions_clickable( $text = '' ) { 177 177 return preg_replace_callback( '#([\s>])@([0-9a-zA-Z-_]+)#i', array( $this, 'make_mentions_clickable_callback' ), $text ); 178 178 } … … 190 190 * @return string HTML A tag with link to user profile. 191 191 */ 192 function make_mentions_clickable_callback( $matches = array() ) {192 public function make_mentions_clickable_callback( $matches = array() ) { 193 193 194 194 // Get user; bail if not found
Note: See TracChangeset
for help on using the changeset viewer.