Changeset 33865 for trunk/src/wp-admin/press-this.php
- Timestamp:
- 09/02/2015 06:37:28 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/press-this.php
r32642 r33865 12 12 require_once( dirname( __FILE__ ) . '/admin.php' ); 13 13 14 if ( ! current_user_can( 'edit_posts' ) || ! current_user_can( get_post_type_object( 'post' )->cap->create_posts ) ) 15 wp_die( __( 'Cheatin’ uh?' ), 403 ); 14 if ( ! current_user_can( 'edit_posts' ) || ! current_user_can( get_post_type_object( 'post' )->cap->create_posts ) ) { 15 wp_die( 16 '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . 17 '<p>' . __( 'You are not allowed to create posts as this user.' ) . '</p>', 18 403 19 ); 20 } 16 21 17 22 /**
Note: See TracChangeset
for help on using the changeset viewer.