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