Privacy: only fold the sections in the privacy policy poxtbox when more than one.

See #43473.
Built from https://develop.svn.wordpress.org/trunk@43052


git-svn-id: http://core.svn.wordpress.org/trunk@42881 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz 2018-05-01 09:48:21 +00:00
parent b4290211f4
commit 237df3367b
2 changed files with 3 additions and 2 deletions

View File

@ -1555,6 +1555,7 @@ final class WP_Privacy_Policy_Content {
$copy = __( 'Copy' );
$more = __( 'Read More' );
$less = __( 'Read Less' );
$folded = ( count( $content_array ) > 1 ) ? ' folded' : '';
foreach ( $content_array as $section ) {
$class = $meta = '';
@ -1575,7 +1576,7 @@ final class WP_Privacy_Policy_Content {
$plugin_name = esc_html( $section['plugin_name'] );
$content .= '<div class="privacy-text-section folded' . $class . '">';
$content .= '<div class="privacy-text-section' . $folded . $class . '">';
$content .= '<h3>' . $plugin_name . '</h3>';
if ( ! empty( $meta ) ) {

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.0-alpha-43051';
$wp_version = '5.0-alpha-43052';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.