Changeset 12030
- Timestamp:
- 08/25/2022 06:43:20 AM (2 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/explanations.php
r9503 r12030 352 352 } 353 353 354 $role = wp_get_current_user()->roles[0];354 $role = current( wp_get_current_user()->roles ); 355 355 356 356 // Only grant explanation post type caps for admins, editors, and explanation editors. -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/handbooks.php
r11377 r12030 171 171 172 172 // Get current user's role. 173 $role = wp_get_current_user()->roles[0];173 $role = current( wp_get_current_user()->roles ); 174 174 175 175 // Unset caps set by handbook plugin.
Note: See TracChangeset
for help on using the changeset viewer.