Changeset 5443 for trunk/src/includes/topics/capabilities.php
- Timestamp:
- 07/11/2014 09:57:54 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/src/includes/topics/capabilities.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/topics/capabilities.php
r5079 r5443 79 79 // Get the post 80 80 $_post = get_post( $args[0] ); 81 if ( ! empty( $_post ) ) {81 if ( ! empty( $_post ) ) { 82 82 83 83 // Get caps for post type object … … 134 134 // Get the post 135 135 $_post = get_post( $args[0] ); 136 if ( ! empty( $_post ) ) {136 if ( ! empty( $_post ) ) { 137 137 138 138 // Get caps for post type object … … 145 145 146 146 // User is author so allow edit if not in admin 147 } elseif ( ! is_admin() && ( (int) $user_id === (int) $_post->post_author ) ) {147 } elseif ( ! is_admin() && ( (int) $user_id === (int) $_post->post_author ) ) { 148 148 $caps[] = $post_type->cap->edit_posts; 149 149 … … 162 162 // Get the post 163 163 $_post = get_post( $args[0] ); 164 if ( ! empty( $_post ) ) {164 if ( ! empty( $_post ) ) { 165 165 166 166 // Get caps for post type object
Note: See TracChangeset
for help on using the changeset viewer.