Making WordPress.org


Ignore:
Timestamp:
06/30/2017 03:00:20 AM (9 years ago)
Author:
SergeyBiryukov
Message:

Support Forums: Add missing public keywords in class-hooks.php.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-hooks.php

    r5608 r5609  
    5353         * @return string Checked value of topic subscription.
    5454         */
    55         function check_topic_subscription_checkbox( $checked ) {
     55        public function check_topic_subscription_checkbox( $checked ) {
    5656                if ( bbp_is_single_forum() || bbp_is_single_view() ) {
    5757                        $checked = checked( true, true, false );
     
    6969         * @param WP_Query $query Current query object.
    7070         */
    71         function hide_non_public_forums( $query ) {
     71        public function hide_non_public_forums( $query ) {
    7272                if ( ! is_admin() && 'forum' === $query->get( 'post_type' ) ) {
    7373                        $query->set( 'post_status', 'publish' );
     
    8080         * @return int Filtered edit lock time.
    8181         */
    82         function increase_edit_lock_time() {
     82        public function increase_edit_lock_time() {
    8383                return 60;
    8484        }
     
    9393         * @return string Filtered redirect URL.
    9494         */
    95         function disable_redirect_guess_404_permalink( $redirect_url ) {
     95        public function disable_redirect_guess_404_permalink( $redirect_url ) {
    9696                if ( is_404() && 'topic' === get_query_var( 'post_type' ) && get_query_var( 'name' ) ) {
    9797                        $hidden_topic = get_posts( array(
     
    174174         * @return string Filtered content.
    175175         */
    176         function make_mentions_clickable( $text = '' ) {
     176        public function make_mentions_clickable( $text = '' ) {
    177177                return preg_replace_callback( '#([\s>])@([0-9a-zA-Z-_]+)#i', array( $this, 'make_mentions_clickable_callback' ), $text );
    178178        }
     
    190190         * @return string HTML A tag with link to user profile.
    191191         */
    192         function make_mentions_clickable_callback( $matches = array() ) {
     192        public function make_mentions_clickable_callback( $matches = array() ) {
    193193
    194194                // Get user; bail if not found
Note: See TracChangeset for help on using the changeset viewer.