Changeset 43266 for branches/4.9/src/wp-admin/includes/misc.php
- Timestamp:
- 05/14/2018 04:47:37 PM (7 years ago)
- Location:
- branches/4.9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.9
-
branches/4.9/src/wp-admin/includes/misc.php
r43264 r43266 1559 1559 1560 1560 $content = ''; 1561 $toc = array( '<li><a href="# ">' . __( 'Introduction' ) . '</a></li>' );1562 $date_format = get_option( 'date_format' );1561 $toc = array( '<li><a href="#wp-privacy-policy-guide-introduction">' . __( 'Introduction' ) . '</a></li>' ); 1562 $date_format = __( 'F j, Y' ); 1563 1563 $copy = __( 'Copy' ); 1564 1564 $return_to_top = '<a href="#" class="return-to-top">' . __( '↑ Return to Top' ) . '</a>'; … … 1585 1585 1586 1586 $plugin_name = esc_html( $section['plugin_name'] ); 1587 $toc_id = sanitize_title( $plugin_name );1587 $toc_id = 'wp-privacy-policy-guide-' . sanitize_title( $plugin_name ); 1588 1588 $toc[] = sprintf( '<li><a href="#%1$s">%2$s</a>' . $meta . '</li>', $toc_id, $plugin_name ); 1589 1589 1590 1590 $content .= '<div class="privacy-text-section' . $class . '">'; 1591 1591 $content .= '<a id="' . $toc_id . '"> </a>'; 1592 /* translators: %s: plugin name */ 1592 1593 $content .= '<h2>' . sprintf( __( 'Source: %s' ), $plugin_name ) . '</h2>'; 1593 1594 $content .= $removed; … … 1622 1623 <div class="privacy-text-box"> 1623 1624 <div class="privacy-text-box-head"> 1625 <a id="wp-privacy-policy-guide-introduction"> </a> 1624 1626 <h2><?php _e( 'Introduction' ); ?></h2> 1625 1627 <p><?php _e( 'Hello,' ); ?></p>
Note: See TracChangeset
for help on using the changeset viewer.