Privacy: do not fold a single section in the privacy policy poxtbox.

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


git-svn-id: http://core.svn.wordpress.org/trunk@42955 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz 2018-05-02 22:10:21 +00:00
parent aa01cbe691
commit 0d2eb27a5d
6 changed files with 15 additions and 11 deletions

View File

@ -717,6 +717,7 @@ span.wp-media-buttons-icon:before {
} }
.privacy-text-actions { .privacy-text-actions {
height: 32px;
line-height: 32px; line-height: 32px;
padding-bottom: 6px; padding-bottom: 6px;
} }

File diff suppressed because one or more lines are too long

View File

@ -717,6 +717,7 @@ span.wp-media-buttons-icon:before {
} }
.privacy-text-actions { .privacy-text-actions {
height: 32px;
line-height: 32px; line-height: 32px;
padding-bottom: 6px; padding-bottom: 6px;
} }

File diff suppressed because one or more lines are too long

View File

@ -1586,15 +1586,17 @@ final class WP_Privacy_Policy_Content {
$content .= '<div class="policy-text" aria-expanded="false">' . $section['policy_text'] . '</div>'; $content .= '<div class="policy-text" aria-expanded="false">' . $section['policy_text'] . '</div>';
$content .= '<div class="privacy-text-actions">'; $content .= '<div class="privacy-text-actions">';
$content .= '<button type="button" class="button-link policy-text-more">'; if ( $folded ) {
$content .= $more; $content .= '<button type="button" class="button-link policy-text-more">';
$content .= '<span class="screen-reader-text">' . sprintf( __( 'Expand suggested policy text section from %s.' ), $plugin_name ) . '</span>'; $content .= $more;
$content .= '</button>'; $content .= '<span class="screen-reader-text">' . sprintf( __( 'Expand suggested policy text section from %s.' ), $plugin_name ) . '</span>';
$content .= '</button>';
$content .= '<button type="button" class="button-link policy-text-less">'; $content .= '<button type="button" class="button-link policy-text-less">';
$content .= $less; $content .= $less;
$content .= '<span class="screen-reader-text">' . sprintf( __( 'Collapse suggested policy text section from %s.' ), $plugin_name ) . '</span>'; $content .= '<span class="screen-reader-text">' . sprintf( __( 'Collapse suggested policy text section from %s.' ), $plugin_name ) . '</span>';
$content .= '</button>'; $content .= '</button>';
}
if ( empty( $section['removed'] ) ) { if ( empty( $section['removed'] ) ) {
$content .= '<button type="button" class="privacy-text-copy button">'; $content .= '<button type="button" class="privacy-text-copy button">';

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.0-alpha-43125'; $wp_version = '5.0-alpha-43126';
/** /**
* 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.