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:
parent
aa01cbe691
commit
0d2eb27a5d
|
@ -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
|
@ -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
|
@ -1586,6 +1586,7 @@ 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">';
|
||||||
|
if ( $folded ) {
|
||||||
$content .= '<button type="button" class="button-link policy-text-more">';
|
$content .= '<button type="button" class="button-link policy-text-more">';
|
||||||
$content .= $more;
|
$content .= $more;
|
||||||
$content .= '<span class="screen-reader-text">' . sprintf( __( 'Expand suggested policy text section from %s.' ), $plugin_name ) . '</span>';
|
$content .= '<span class="screen-reader-text">' . sprintf( __( 'Expand suggested policy text section from %s.' ), $plugin_name ) . '</span>';
|
||||||
|
@ -1595,6 +1596,7 @@ final class WP_Privacy_Policy_Content {
|
||||||
$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">';
|
||||||
|
|
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue