Changeset 4958
- Timestamp:
- 02/20/2017 10:56:05 PM (8 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-directory-compat.php
r4948 r4958 244 244 // Instantiate WPORG_Stickies mode for topic view. 245 245 if ( class_exists( 'WordPressdotorg\Forums\Stickies_Compat' ) ) { 246 $this->stickies = new Stickies_Compat( $this->compat(), $this->slug(), $this->taxonomy(), $this->get_object( $this->slug() ), $this->term, $this->authors );246 $this->stickies = new Stickies_Compat( $this->compat(), $this->slug(), $this->taxonomy(), $this->get_object( $this->slug() ), $this->term, $this->authors, $this->contributors ); 247 247 } 248 248 -
sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-stickies-compat.php
r4161 r4958 13 13 var $term = null; 14 14 15 public function __construct( $compat, $slug, $taxonomy, $object, $term, $authors = array() ) {15 public function __construct( $compat, $slug, $taxonomy, $object, $term, $authors = array(), $contributors = array() ) { 16 16 if ( empty( $compat ) || empty( $slug ) || empty( $taxonomy ) || empty( $object ) || empty( $term ) ) { 17 17 return; 18 18 } 19 19 20 $this->compat = $compat; 21 $this->slug = $slug; 22 $this->taxonomy = $taxonomy; 23 $this->object = $object; 24 $this->term = $term; 25 $this->authors = $authors; 20 $this->compat = $compat; 21 $this->slug = $slug; 22 $this->taxonomy = $taxonomy; 23 $this->object = $object; 24 $this->term = $term; 25 $this->authors = $authors; 26 $this->contributors = $contributors; 26 27 27 28 // Remove global stickies from sticky array. … … 215 216 $retval = true; 216 217 } 218 219 // Compat contributors. 220 if ( $this->contributors && in_array( $user->user_login, $this->contributors ) ) { 221 $retval = true; 222 } 217 223 } 218 224 return $retval;
Note: See TracChangeset
for help on using the changeset viewer.