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:
@@ -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="privacy-text-actions">';
|
||||
$content .= '<button type="button" class="button-link policy-text-more">';
|
||||
$content .= $more;
|
||||
$content .= '<span class="screen-reader-text">' . sprintf( __( 'Expand suggested policy text section from %s.' ), $plugin_name ) . '</span>';
|
||||
$content .= '</button>';
|
||||
if ( $folded ) {
|
||||
$content .= '<button type="button" class="button-link policy-text-more">';
|
||||
$content .= $more;
|
||||
$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 .= $less;
|
||||
$content .= '<span class="screen-reader-text">' . sprintf( __( 'Collapse suggested policy text section from %s.' ), $plugin_name ) . '</span>';
|
||||
$content .= '</button>';
|
||||
$content .= '<button type="button" class="button-link policy-text-less">';
|
||||
$content .= $less;
|
||||
$content .= '<span class="screen-reader-text">' . sprintf( __( 'Collapse suggested policy text section from %s.' ), $plugin_name ) . '</span>';
|
||||
$content .= '</button>';
|
||||
}
|
||||
|
||||
if ( empty( $section['removed'] ) ) {
|
||||
$content .= '<button type="button" class="privacy-text-copy button">';
|
||||
|
||||
Reference in New Issue
Block a user