Changeset 12030 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/explanations.php
- Timestamp:
- 08/25/2022 06:43:20 AM (2 years ago)
- File:
-
- 1 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.
Note: See TracChangeset
for help on using the changeset viewer.