Changeset 12600 for sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/admin-edit.php
- Timestamp:
- 05/23/2023 06:16:42 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/admin-edit.php
r12335 r12600 107 107 108 108 // User must be able to edit theme or be the theme owner. 109 if ( ! ( user_can( $user->ID, 'edit_post', $post ) || $user->ID === $post->post_author ) ) {109 if ( ! ( user_can( $user->ID, 'edit_post', $post ) || $user->ID !== $post->post_author ) ) { 110 110 return [ 'do_not_allow' ]; 111 111 }
Note: See TracChangeset
for help on using the changeset viewer.