Making WordPress.org

Changeset 4046


Ignore:
Timestamp:
09/13/2016 03:19:17 PM (8 years ago)
Author:
jmdodd
Message:

Support Forums: Remove super stickies from compat support forums.

File:
1 edited

Legend:

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

    r4045 r4046  
    2525        $this->authors  = $authors;
    2626
     27        // Remove global stickies from sticky array.
     28        add_filter( 'bbp_get_super_stickies', array( $this, 'get_super_stickies' ) );
     29
    2730        // Add compat stickies to sticky array.
    2831        add_filter( 'bbp_get_stickies', array( $this, 'get_compat_stickies' ), 10, 2 );
     
    3336        // Add link to topic admin.
    3437        add_filter( 'bbp_topic_admin_links', array( $this, 'admin_links' ), 10, 2 );
     38    }
     39
     40    /**
     41     * Return empty array for super sticky topics in compat mode.
     42     *
     43     * @param array $stickies The super sticky topic ids
     44     * @return array An empty array
     45     */
     46    public function get_super_stickies( $stickies ) {
     47        return array();
    3548    }
    3649
Note: See TracChangeset for help on using the changeset viewer.