Make WordPress Core


Ignore:
Timestamp:
05/01/2018 06:27:45 AM (6 years ago)
Author:
iandunn
Message:

Bundled Themes: Add link to privacy policy page in footer.

If a privacy policy has been set, then a link to it will automatically be shown in the footer.

The element containing the "Proudly powered by WordPress" link was chosen for the new policy link, in order to minimize visual conflicts with custom CSS that was written before the new link existed. Unfortunately, some minor conflicts are expected and unavoidable. Adding this link is required as part of GDPR compliance, and the benefits outweigh the downsides.

To further mitigate the conflicts, a new imprint class was added to the "Proudly powered..." link, in order to facilitate targeting each link invididually with custom styles.

Props xkon, laurelfulford, birgire, azaozz, iandunn.
See #43715.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyten/footer.php

    r42343 r43051  
    2828                    <?php bloginfo( 'name' ); ?>
    2929                </a>
     30                <?php
     31                if ( function_exists( 'the_privacy_policy_link' ) ) {
     32                    the_privacy_policy_link( '<span role="separator" aria-hidden="true"></span>', '' );
     33                }
     34                ?>
    3035            </div><!-- #site-info -->
    3136
     
    3944                do_action( 'twentyten_credits' );
    4045                ?>
    41                 <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentyten' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentyten' ); ?>"><?php printf( __( 'Proudly powered by %s.', 'twentyten' ), 'WordPress' ); ?></a>
     46                <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentyten' ) ); ?>" class="imprint" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentyten' ); ?>">
     47                    <?php printf( __( 'Proudly powered by %s.', 'twentyten' ), 'WordPress' ); ?>
     48                </a>
    4249            </div><!-- #site-generator -->
    4350
Note: See TracChangeset for help on using the changeset viewer.