Changeset 25438 for trunk/src/wp-includes/capabilities.php
- Timestamp:
- 09/14/2013 06:35:43 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/capabilities.php
r25329 r25438 1067 1067 case 'edit_page': 1068 1068 $post = get_post( $args[0] ); 1069 if ( empty( $post ) ) 1070 break; 1069 1071 1070 1072 if ( 'revision' == $post->post_type ) { … … 1171 1173 case 'edit_comment': 1172 1174 $comment = get_comment( $args[0] ); 1175 if ( empty( $comment ) ) 1176 break; 1173 1177 $post = get_post( $comment->comment_post_ID ); 1174 1178 $caps = map_meta_cap( 'edit_post', $user_id, $post->ID );
Note: See TracChangeset
for help on using the changeset viewer.