Changeset 12601 for sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/admin-edit.php
- Timestamp:
- 05/23/2023 06:23:01 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
r12600 r12601 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 !== intval( $post->post_author ) ) { 110 110 return [ 'do_not_allow' ]; 111 111 }
Note: See TracChangeset
for help on using the changeset viewer.