Make WordPress Core

Changeset 43052


Ignore:
Timestamp:
05/01/2018 09:47:53 AM (6 years ago)
Author:
azaozz
Message:

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

See #43473.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/misc.php

    r43048 r43052  
    15561556        $more = __( 'Read More' );
    15571557        $less = __( 'Read Less' );
     1558        $folded = ( count( $content_array ) > 1 ) ? ' folded' : '';
    15581559
    15591560        foreach ( $content_array as $section ) {
     
    15761577            $plugin_name = esc_html( $section['plugin_name'] );
    15771578
    1578             $content .= '<div class="privacy-text-section folded' . $class . '">';
     1579            $content .= '<div class="privacy-text-section' . $folded . $class . '">';
    15791580            $content .= '<h3>' . $plugin_name . '</h3>';
    15801581
Note: See TracChangeset for help on using the changeset viewer.