mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-04 20:54:29 +00:00
Privacy: rename manage_privacy_policy to manage_privacy_options.
Props desrosj. FIxes #43935. git-svn-id: https://develop.svn.wordpress.org/trunk@43155 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
/** WordPress Administration Bootstrap */
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
|
||||
if ( ! current_user_can( 'manage_privacy_policy' ) ) {
|
||||
if ( ! current_user_can( 'manage_privacy_options' ) ) {
|
||||
wp_die( __( 'Sorry, you are not allowed to manage privacy on this site.' ) );
|
||||
}
|
||||
|
||||
@@ -200,7 +200,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
<form method="post" action="">
|
||||
<input type="hidden" name="action" value="create-privacy-page" />
|
||||
<span>
|
||||
<?php _e( 'Or create a new page:' ); ?>
|
||||
<?php _e( 'Or create a new page:' ); ?>
|
||||
</span>
|
||||
<?php
|
||||
wp_nonce_field( 'create-privacy-page' );
|
||||
|
||||
Reference in New Issue
Block a user