- Timestamp:
- 01/28/2025 04:07:07 AM (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-menus-controller.php
r56415 r59718 85 85 */ 86 86 protected function check_has_read_only_access( $request ) { 87 /** This filter is documented in wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controller.php */ 88 $read_only_access = apply_filters( 'rest_menu_read_access', false, $request, $this ); 89 if ( $read_only_access ) { 90 return true; 91 } 92 87 93 if ( current_user_can( 'edit_theme_options' ) ) { 88 94 return true;
Note: See TracChangeset
for help on using the changeset viewer.