Changeset 4046
- Timestamp:
- 09/13/2016 03:19:17 PM (7 years ago)
- 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 25 25 $this->authors = $authors; 26 26 27 // Remove global stickies from sticky array. 28 add_filter( 'bbp_get_super_stickies', array( $this, 'get_super_stickies' ) ); 29 27 30 // Add compat stickies to sticky array. 28 31 add_filter( 'bbp_get_stickies', array( $this, 'get_compat_stickies' ), 10, 2 ); … … 33 36 // Add link to topic admin. 34 37 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(); 35 48 } 36 49
Note: See TracChangeset
for help on using the changeset viewer.