Changeset 45932 for trunk/src/wp-includes/capabilities.php
- Timestamp:
- 09/03/2019 12:39:13 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/capabilities.php
r45812 r45932 84 84 $post_type = get_post_type_object( $post->post_type ); 85 85 if ( ! $post_type ) { 86 /* translators: 1: post type, 2: capability name*/86 /* translators: 1: Post type, 2: Capability name. */ 87 87 _doing_it_wrong( __FUNCTION__, sprintf( __( 'The post type %1$s is not registered, so it may not be reliable to check the capability "%2$s" against a post of that type.' ), $post->post_type, $cap ), '4.4.0' ); 88 88 $caps[] = 'edit_others_posts'; … … 155 155 $post_type = get_post_type_object( $post->post_type ); 156 156 if ( ! $post_type ) { 157 /* translators: 1: post type, 2: capability name*/157 /* translators: 1: Post type, 2: Capability name. */ 158 158 _doing_it_wrong( __FUNCTION__, sprintf( __( 'The post type %1$s is not registered, so it may not be reliable to check the capability "%2$s" against a post of that type.' ), $post->post_type, $cap ), '4.4.0' ); 159 159 $caps[] = 'edit_others_posts'; … … 224 224 $post_type = get_post_type_object( $post->post_type ); 225 225 if ( ! $post_type ) { 226 /* translators: 1: post type, 2: capability name*/226 /* translators: 1: Post type, 2: Capability name. */ 227 227 _doing_it_wrong( __FUNCTION__, sprintf( __( 'The post type %1$s is not registered, so it may not be reliable to check the capability "%2$s" against a post of that type.' ), $post->post_type, $cap ), '4.4.0' ); 228 228 $caps[] = 'edit_others_posts'; … … 262 262 $post_type = get_post_type_object( $post->post_type ); 263 263 if ( ! $post_type ) { 264 /* translators: 1: post type, 2: capability name*/264 /* translators: 1: Post type, 2: Capability name. */ 265 265 _doing_it_wrong( __FUNCTION__, sprintf( __( 'The post type %1$s is not registered, so it may not be reliable to check the capability "%2$s" against a post of that type.' ), $post->post_type, $cap ), '4.4.0' ); 266 266 $caps[] = 'edit_others_posts'; … … 1040 1040 1041 1041 // Dummy gettext calls to get strings in the catalog. 1042 /* translators: user role for administrators*/1042 /* translators: User role for administrators. */ 1043 1043 _x( 'Administrator', 'User role' ); 1044 /* translators: user role for editors*/1044 /* translators: User role for editors. */ 1045 1045 _x( 'Editor', 'User role' ); 1046 /* translators: user role for authors*/1046 /* translators: User role for authors. */ 1047 1047 _x( 'Author', 'User role' ); 1048 /* translators: user role for contributors*/1048 /* translators: User role for contributors. */ 1049 1049 _x( 'Contributor', 'User role' ); 1050 /* translators: user role for subscriber*/1050 /* translators: User role for subscribers. */ 1051 1051 _x( 'Subscriber', 'User role' );
Note: See TracChangeset
for help on using the changeset viewer.