Make WordPress Core

Ticket #44056: 44056.2.patch

File 44056.2.patch, 1.6 KB (added by ocean90, 7 years ago)
  • src/wp-admin/includes/misc.php

     
    16051605                $content_array = self::get_suggested_policy_text();
    16061606
    16071607                $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' );
    16101610                $copy = __( 'Copy' );
    16111611                $return_to_top = '<a href="#" class="return-to-top">' . __( '&uarr; Return to Top' ) . '</a>';
    16121612
     
    16311631                        }
    16321632
    16331633                        $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 );
    16351635                        $toc[] = sprintf( '<li><a href="#%1$s">%2$s</a>' . $meta . '</li>', $toc_id, $plugin_name );
    16361636
    16371637                        $content .= '<div class="privacy-text-section' . $class . '">';
    16381638                        $content .= '<a id="' . $toc_id . '">&nbsp;</a>';
     1639                        /* translators: %s: plugin name */
    16391640                        $content .= '<h2>' . sprintf( __( 'Source: %s' ), $plugin_name ) . '</h2>';
    16401641                        $content .= $removed;
    16411642
     
    16681669                ?>
    16691670                <div class="privacy-text-box">
    16701671                        <div class="privacy-text-box-head">
     1672                                <a id="wp-privacy-policy-guide-introduction">&nbsp;</a>
    16711673                                <h2><?php _e( 'Introduction' ); ?></h2>
    16721674                                <p><?php _e( 'Hello,' ); ?></p>
    16731675                                <p><?php _e( 'This text template will help you to create your web site&#8217;s privacy policy.' ); ?></p>