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:
parent
b4290211f4
commit
237df3367b
|
@ -1555,6 +1555,7 @@ final class WP_Privacy_Policy_Content {
|
||||||
$copy = __( 'Copy' );
|
$copy = __( 'Copy' );
|
||||||
$more = __( 'Read More' );
|
$more = __( 'Read More' );
|
||||||
$less = __( 'Read Less' );
|
$less = __( 'Read Less' );
|
||||||
|
$folded = ( count( $content_array ) > 1 ) ? ' folded' : '';
|
||||||
|
|
||||||
foreach ( $content_array as $section ) {
|
foreach ( $content_array as $section ) {
|
||||||
$class = $meta = '';
|
$class = $meta = '';
|
||||||
|
@ -1575,7 +1576,7 @@ final class WP_Privacy_Policy_Content {
|
||||||
|
|
||||||
$plugin_name = esc_html( $section['plugin_name'] );
|
$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>';
|
$content .= '<h3>' . $plugin_name . '</h3>';
|
||||||
|
|
||||||
if ( ! empty( $meta ) ) {
|
if ( ! empty( $meta ) ) {
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue