Make WordPress Core

Changeset 43214


Ignore:
Timestamp:
05/10/2018 03:53:24 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Privacy: Reposition admin pointer to avoid covering collapsed menu.

Previously the pointer overlapped the menu in order to draw attention to the fact that it applies to both the Tools and Settings menus. That caused a conflict if the menu was collapsed, though, because the icons were covered by the pointer and therefore inaccessible.

Additionally, minor tweaks were made to the text order and formatting. The order of the two sections was swapped in the title and paragraph, in order to match the order of the corresponding menu items. The spacing around headings and paragraphs was tweaked to remove extraneous whitespace.

Props littler.chicken, desrosj, ianbelanger, melchoyce.
Merges [43210] to the 4.9 branch.
Fixes #43961.

Location:
branches/4.9
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9

  • branches/4.9/src/wp-admin/includes/class-wp-internal-pointers.php

    r43159 r43214  
    162162     */
    163163    public static function pointer_wp496_privacy() {
    164         $content  = '<h3>' . __( 'Privacy and Personal Data' ) . '</h3>';
     164        $content  = '<h3>' . __( 'Personal Data and Privacy' ) . '</h3>';
     165        $content .= '<h4>' . __( 'Personal Data Export and Erasure' ) . '</h4>';
     166        $content .= '<p>' . __( 'New <strong>Tools</strong> have been added to help you with personal data export and erasure requests.' ) . '</p>';
    165167        $content .= '<h4>' . __( 'Privacy Policy' ) . '</h4>';
    166168        $content .= '<p>' . __( 'Create or select your site&#8217;s privacy policy page under <strong>Settings &gt; Privacy</strong> to keep your users informed and aware.' ) . '</p>';
    167         $content .= '<h4>' . __( 'Personal Data Export and Erasure' ) . '</h4>';
    168         $content .= '<p>' . __( 'New <strong>Tools</strong> have been added to help you with personal data export and erasure requests.' ) . '</p>';
    169169
    170170        if ( is_rtl() ) {
     
    172172                'edge'  => 'right',
    173173                'align' => 'left',
    174                 'at'    => 'left+40',
    175174            );
    176175        } else {
     
    178177                'edge'  => 'left',
    179178                'align' => 'right',
    180                 'at'    => 'right-40 bottom'
    181179            );
    182180        }
  • branches/4.9/src/wp-includes/css/wp-pointer.css

    r43159 r43214  
    3838
    3939.wp-pointer-content h4 {
    40     margin: 1.33em 15px;
     40    margin: 1.33em 20px 1em;
     41    font-size: 1.15em;
    4142}
    4243
    4344.wp-pointer-content p {
    44     padding: 0 15px;
     45    padding: 0 20px;
    4546}
    4647
Note: See TracChangeset for help on using the changeset viewer.