Update WP and plugins
This commit is contained in:
parent
10a4713229
commit
1fb77fc4ff
864 changed files with 101724 additions and 78262 deletions
|
@ -39,7 +39,7 @@ if ( ! empty( $action ) ) {
|
|||
) {
|
||||
$privacy_page_updated_message = sprintf(
|
||||
/* translators: %s: URL to Customizer -> Menus */
|
||||
__( 'Privacy Policy page updated successfully. Remember to <a href="%s">update your menus</a>!' ),
|
||||
__( 'Privacy Policy page setting updated successfully. Remember to <a href="%s">update your menus</a>!' ),
|
||||
esc_url( add_query_arg( 'autofocus[panel]', 'nav_menus', admin_url( 'customize.php' ) ) )
|
||||
);
|
||||
}
|
||||
|
@ -58,7 +58,7 @@ if ( ! empty( $action ) ) {
|
|||
}
|
||||
|
||||
$privacy_policy_page_content = WP_Privacy_Policy_Content::get_default_content();
|
||||
$privacy_policy_page_id = wp_insert_post(
|
||||
$privacy_policy_page_id = wp_insert_post(
|
||||
array(
|
||||
'post_title' => __( 'Privacy Policy' ),
|
||||
'post_status' => 'draft',
|
||||
|
@ -165,22 +165,23 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
|||
|
||||
?>
|
||||
</strong></p>
|
||||
<p>
|
||||
<?php
|
||||
|
||||
/* translators: 1: Privacy Policy guide URL, 2: additional link attributes, 3: accessibility text */
|
||||
printf(
|
||||
__( 'Need help putting together your new Privacy Policy page? <a href="%1$s" %2$s>Check out our guide%3$s</a> for recommendations on what content to include, along with policies suggested by your plugins and theme.' ),
|
||||
admin_url( 'tools.php?wp-privacy-policy-guide' ),
|
||||
'',
|
||||
''
|
||||
);
|
||||
|
||||
?>
|
||||
</p>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<p>
|
||||
<?php
|
||||
|
||||
printf(
|
||||
/* translators: 1: Privacy Policy guide URL, 2: additional link attributes, 3: accessibility text */
|
||||
__( 'Need help putting together your new Privacy Policy page? <a href="%1$s" %2$s>Check out our guide%3$s</a> for recommendations on what content to include, along with policies suggested by your plugins and theme.' ),
|
||||
admin_url( 'tools.php?wp-privacy-policy-guide' ),
|
||||
'',
|
||||
''
|
||||
);
|
||||
|
||||
?>
|
||||
</p>
|
||||
|
||||
<hr>
|
||||
<table class="form-table tools-privacy-policy-page">
|
||||
<tr>
|
||||
|
@ -195,16 +196,19 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
|||
</th>
|
||||
<td>
|
||||
<?php
|
||||
$has_pages = (bool) get_posts( array(
|
||||
'post_type' => 'page',
|
||||
'posts_per_page' => 1,
|
||||
'post_status' => array(
|
||||
'publish',
|
||||
'draft',
|
||||
),
|
||||
) );
|
||||
$has_pages = (bool) get_posts(
|
||||
array(
|
||||
'post_type' => 'page',
|
||||
'posts_per_page' => 1,
|
||||
'post_status' => array(
|
||||
'publish',
|
||||
'draft',
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
if ( $has_pages ) : ?>
|
||||
if ( $has_pages ) :
|
||||
?>
|
||||
<form method="post" action="">
|
||||
<label for="page_for_privacy_policy">
|
||||
<?php _e( 'Select an existing page:' ); ?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue