Changeset 4045
- Timestamp:
- 09/13/2016 02:32:47 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
r4044 r4045 180 180 $user_id = get_current_user_id(); 181 181 } 182 $user = get_userdata( $user_id ); 182 183 183 184 if ( $topic_id ) { … … 188 189 } 189 190 190 if ( $user _id&& $topic && $term ) {191 if ( $user && $topic && $term ) { 191 192 // Moderators. 192 if ( user_can( $user _id, 'moderate' ) ) {193 if ( user_can( $user->ID, 'moderate' ) ) { 193 194 $retval = true; 194 195 } 195 196 196 197 // Compat authors. 197 if ( $this->authors && in_array( $user _id, $this->authors ) ) {198 if ( $this->authors && in_array( $user->user_login, $this->authors ) ) { 198 199 $retval = true; 199 200 }
Note: See TracChangeset
for help on using the changeset viewer.