Ticket #44056: 44056.patch
File 44056.patch, 1.4 KB (added by , 7 years ago) |
---|
-
src/wp-admin/includes/misc.php
1607 1607 $content_array = self::get_suggested_policy_text(); 1608 1608 1609 1609 $content = ''; 1610 $toc = array( '<li><a href="# ">' . __( 'Introduction' ) . '</a></li>' );1611 $date_format = get_option( 'date_format' );1610 $toc = array( '<li><a href="#wp-privacy-policy-guide-introduction">' . __( 'Introduction' ) . '</a></li>' ); 1611 $date_format = __( 'F j, Y' ); 1612 1612 $copy = __( 'Copy' ); 1613 1613 $return_to_top = '<a href="#" class="return-to-top">' . __( '↑ Return to Top' ) . '</a>'; 1614 1614 … … 1633 1633 } 1634 1634 1635 1635 $plugin_name = esc_html( $section['plugin_name'] ); 1636 $toc_id = sanitize_title( $plugin_name );1636 $toc_id = 'wp-privacy-policy-guide-' . sanitize_title( $plugin_name ); 1637 1637 $toc[] = sprintf( '<li><a href="#%1$s">%2$s</a>' . $meta . '</li>', $toc_id, $plugin_name ); 1638 1638 1639 1639 $content .= '<div class="privacy-text-section' . $class . '">'; … … 1670 1670 ?> 1671 1671 <div class="privacy-text-box"> 1672 1672 <div class="privacy-text-box-head"> 1673 <a id="wp-privacy-policy-guide-introduction"> </a> 1673 1674 <h2><?php _e( 'Introduction' ); ?></h2> 1674 1675 <p><?php _e( 'Hello,' ); ?></p> 1675 1676 <p><?php _e( 'This text template will help you to create your web site’s privacy policy.' ); ?></p>