Changeset 59901 for trunk/src/wp-admin/includes/ms.php
- Timestamp:
- 03/02/2025 11:33:56 PM (13 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/ms.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ms.php
r58132 r59901 1173 1173 '<p>' . __( '<a href="https://wordpress.org/support/forum/multisite/">Support forums</a>' ) . '</p>'; 1174 1174 } 1175 1176 /** 1177 * Stop execution if the role can not be assigned by the current user. 1178 * 1179 * @since 6.8.0 1180 * 1181 * @param string $role Role the user is attempting to assign. 1182 */ 1183 function wp_ensure_editable_role( $role ) { 1184 $roles = get_editable_roles(); 1185 if ( ! isset( $roles[ $role ] ) ) { 1186 wp_die( __( 'Sorry, you are not allowed to give users that role.' ), 403 ); 1187 } 1188 }
Note: See TracChangeset
for help on using the changeset viewer.