Privacy: fix markup for the table of contents on privacy policy guide screen.
Props ocean90, azaozz. Merges [43265] to the 4.9 branch. Fixes #44056. Built from https://develop.svn.wordpress.org/branches/4.9@43266 git-svn-id: http://core.svn.wordpress.org/branches/4.9@43095 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
77d526e000
commit
ca52f0f101
|
@ -1558,8 +1558,8 @@ final class WP_Privacy_Policy_Content {
|
|||
$content_array = self::get_suggested_policy_text();
|
||||
|
||||
$content = '';
|
||||
$toc = array( '<li><a href="#">' . __( 'Introduction' ) . '</a></li>' );
|
||||
$date_format = get_option( 'date_format' );
|
||||
$toc = array( '<li><a href="#wp-privacy-policy-guide-introduction">' . __( 'Introduction' ) . '</a></li>' );
|
||||
$date_format = __( 'F j, Y' );
|
||||
$copy = __( 'Copy' );
|
||||
$return_to_top = '<a href="#" class="return-to-top">' . __( '↑ Return to Top' ) . '</a>';
|
||||
|
||||
|
@ -1584,11 +1584,12 @@ final class WP_Privacy_Policy_Content {
|
|||
}
|
||||
|
||||
$plugin_name = esc_html( $section['plugin_name'] );
|
||||
$toc_id = sanitize_title( $plugin_name );
|
||||
$toc_id = 'wp-privacy-policy-guide-' . sanitize_title( $plugin_name );
|
||||
$toc[] = sprintf( '<li><a href="#%1$s">%2$s</a>' . $meta . '</li>', $toc_id, $plugin_name );
|
||||
|
||||
$content .= '<div class="privacy-text-section' . $class . '">';
|
||||
$content .= '<a id="' . $toc_id . '"> </a>';
|
||||
/* translators: %s: plugin name */
|
||||
$content .= '<h2>' . sprintf( __( 'Source: %s' ), $plugin_name ) . '</h2>';
|
||||
$content .= $removed;
|
||||
|
||||
|
@ -1621,6 +1622,7 @@ final class WP_Privacy_Policy_Content {
|
|||
?>
|
||||
<div class="privacy-text-box">
|
||||
<div class="privacy-text-box-head">
|
||||
<a id="wp-privacy-policy-guide-introduction"> </a>
|
||||
<h2><?php _e( 'Introduction' ); ?></h2>
|
||||
<p><?php _e( 'Hello,' ); ?></p>
|
||||
<p><?php _e( 'This text template will help you to create your web site’s privacy policy.' ); ?></p>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.9.6-RC1-43264';
|
||||
$wp_version = '4.9.6-RC1-43266';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue