Changeset 18200
- Timestamp:
- 06/08/2011 06:06:43 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/capabilities.php
r17771 r18200 821 821 $author_data = get_userdata( $user_id ); 822 822 $post = get_post( $args[0] ); 823 824 if ( 'revision' == $post->post_type ) { 825 $post = get_post( $post->post_parent ); 826 } 827 823 828 $post_type = get_post_type_object( $post->post_type ); 824 829 … … 866 871 $author_data = get_userdata( $user_id ); 867 872 $post = get_post( $args[0] ); 873 874 if ( 'revision' == $post->post_type ) { 875 $post = get_post( $post->post_parent ); 876 } 877 868 878 $post_type = get_post_type_object( $post->post_type ); 869 879 … … 910 920 $author_data = get_userdata( $user_id ); 911 921 $post = get_post( $args[0] ); 922 923 if ( 'revision' == $post->post_type ) { 924 $post = get_post( $post->post_parent ); 925 } 926 912 927 $post_type = get_post_type_object( $post->post_type ); 913 928
Note: See TracChangeset
for help on using the changeset viewer.