Make WordPress Core

Ticket #44056: 44056.patch

File 44056.patch, 1.4 KB (added by azaozz, 7 years ago)
  • src/wp-admin/includes/misc.php

     
    16071607                $content_array = self::get_suggested_policy_text();
    16081608
    16091609                $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' );
    16121612                $copy = __( 'Copy' );
    16131613                $return_to_top = '<a href="#" class="return-to-top">' . __( '&uarr; Return to Top' ) . '</a>';
    16141614
     
    16331633                        }
    16341634
    16351635                        $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 );
    16371637                        $toc[] = sprintf( '<li><a href="#%1$s">%2$s</a>' . $meta . '</li>', $toc_id, $plugin_name );
    16381638
    16391639                        $content .= '<div class="privacy-text-section' . $class . '">';
     
    16701670                ?>
    16711671                <div class="privacy-text-box">
    16721672                        <div class="privacy-text-box-head">
     1673                                <a id="wp-privacy-policy-guide-introduction">&nbsp;</a>
    16731674                                <h2><?php _e( 'Introduction' ); ?></h2>
    16741675                                <p><?php _e( 'Hello,' ); ?></p>
    16751676                                <p><?php _e( 'This text template will help you to create your web site&#8217;s privacy policy.' ); ?></p>