Make WordPress Core

Ticket #43715: 43715.6.diff

File 43715.6.diff, 10.1 KB (added by iandunn, 7 years ago)

Use CSS content for separator instead of <span> content

  • src/wp-content/themes/twentyeleven/footer.php

    diff --git src/wp-content/themes/twentyeleven/footer.php src/wp-content/themes/twentyeleven/footer.php
    index b14ba70a24..18d022e3a5 100644
     
    2626
    2727                        <div id="site-generator">
    2828                                <?php do_action( 'twentyeleven_credits' ); ?>
     29                                <?php
     30                                if ( function_exists( 'the_privacy_policy_link' ) ) {
     31                                        the_privacy_policy_link( '', '<span role="separator" aria-hidden="true"></span>' );
     32                                }
     33                                ?>
    2934                                <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentyeleven' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentyeleven' ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentyeleven' ), 'WordPress' ); ?></a>
    3035                        </div>
    3136        </footer><!-- #colophon -->
  • src/wp-content/themes/twentyeleven/style.css

    diff --git src/wp-content/themes/twentyeleven/style.css src/wp-content/themes/twentyeleven/style.css
    index 83e6f7a522..7211225f99 100644
    p.comment-form-comment { 
    23522352        color: #555;
    23532353        font-weight: bold;
    23542354}
     2355#site-generator span[role=separator] {
     2356        padding: 0 0.4em 0 0.5em;
     2357}
     2358#site-generator span[role=separator]::before {
     2359        content: '/';
     2360}
    23552361
    23562362
    23572363/* =Responsive Structure
  • src/wp-content/themes/twentyfifteen/footer.php

    diff --git src/wp-content/themes/twentyfifteen/footer.php src/wp-content/themes/twentyfifteen/footer.php
    index e57b5f583a..e8594bba77 100644
     
    2222                                 */
    2323                                do_action( 'twentyfifteen_credits' );
    2424                        ?>
     25                        <?php
     26                        if ( function_exists( 'the_privacy_policy_link' ) ) {
     27                                the_privacy_policy_link( '', '<span role="separator" aria-hidden="true"></span>' );
     28                        }
     29                        ?>
    2530                        <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentyfifteen' ) ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentyfifteen' ), 'WordPress' ); ?></a>
    2631                </div><!-- .site-info -->
    2732        </footer><!-- .site-footer -->
  • src/wp-content/themes/twentyfifteen/style.css

    diff --git src/wp-content/themes/twentyfifteen/style.css src/wp-content/themes/twentyfifteen/style.css
    index 77c731163b..15f42dc7c6 100644
    a.post-thumbnail:focus { 
    24342434        color: #333;
    24352435}
    24362436
     2437.site-info span[role=separator] {
     2438        padding: 0 0.4em 0 0.5em;
     2439}
     2440.site-info span[role=separator]::before {
     2441        content: '/';
     2442}
    24372443
    24382444/**
    24392445 * 14.0 Media
  • src/wp-content/themes/twentyfourteen/footer.php

    diff --git src/wp-content/themes/twentyfourteen/footer.php src/wp-content/themes/twentyfourteen/footer.php
    index 0193c64777..be0c5f777c 100644
     
    1818
    1919                        <div class="site-info">
    2020                                <?php do_action( 'twentyfourteen_credits' ); ?>
     21                                <?php
     22                                if ( function_exists( 'the_privacy_policy_link' ) ) {
     23                                        the_privacy_policy_link( '', '<span role="separator" aria-hidden="true"></span>' );
     24                                }
     25                                ?>
    2126                                <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentyfourteen' ) ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentyfourteen' ), 'WordPress' ); ?></a>
    2227                        </div><!-- .site-info -->
    2328                </footer><!-- #colophon -->
  • src/wp-content/themes/twentyfourteen/style.css

    diff --git src/wp-content/themes/twentyfourteen/style.css src/wp-content/themes/twentyfourteen/style.css
    index 32ed8373ae..168cf4e13f 100644
    a.post-thumbnail:hover { 
    29162916        color: #41a62a;
    29172917}
    29182918
     2919.site-info span[role=separator] {
     2920        padding: 0 0.4em 0 0.5em;
     2921}
     2922.site-info span[role=separator]::before {
     2923        content: '/';
     2924}
    29192925
    29202926/**
    29212927 * 9.0 Featured Content
  • src/wp-content/themes/twentyseventeen/style.css

    diff --git src/wp-content/themes/twentyseventeen/style.css src/wp-content/themes/twentyseventeen/style.css
    index beafdee296..fe7dfc7507 100644
    body:not(.twentyseventeen-front-page) .entry-header { 
    23782378        width: 100%;
    23792379}
    23802380
     2381.site-info span[role=separator] {
     2382        padding: 0 0.3em 0 0.4em;
     2383}
     2384.site-info span[role=separator]::before {
     2385        content: '/';
     2386}
     2387
    23812388/*--------------------------------------------------------------
    2382238914.0 Comments
    23832390--------------------------------------------------------------*/
  • src/wp-content/themes/twentyseventeen/template-parts/footer/site-info.php

    diff --git src/wp-content/themes/twentyseventeen/template-parts/footer/site-info.php src/wp-content/themes/twentyseventeen/template-parts/footer/site-info.php
    index 8455dc4235..e145e59dd6 100644
     
    1010
    1111?>
    1212<div class="site-info">
     13        <?php
     14        if ( function_exists( 'the_privacy_policy_link' ) ) {
     15                the_privacy_policy_link( '', '<span role="separator" aria-hidden="true"></span>' );
     16        }
     17        ?>
    1318        <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentyseventeen' ) ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentyseventeen' ), 'WordPress' ); ?></a>
    1419</div><!-- .site-info -->
  • src/wp-content/themes/twentysixteen/footer.php

    diff --git src/wp-content/themes/twentysixteen/footer.php src/wp-content/themes/twentysixteen/footer.php
    index 037633a98d..a19e5c4125 100644
     
    5252                                        do_action( 'twentysixteen_credits' );
    5353                                ?>
    5454                                <span class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></span>
     55                                <?php
     56                                if ( function_exists( 'the_privacy_policy_link' ) ) {
     57                                        the_privacy_policy_link( '', '<span role="separator" aria-hidden="true"></span>' );
     58                                }
     59                                ?>
    5560                                <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentysixteen' ) ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentysixteen' ), 'WordPress' ); ?></a>
    5661                        </div><!-- .site-info -->
    5762                </footer><!-- .site-footer -->
  • src/wp-content/themes/twentysixteen/style.css

    diff --git src/wp-content/themes/twentysixteen/style.css src/wp-content/themes/twentysixteen/style.css
    index ed22828698..5bfc66a48b 100644
    body.search-no-results .page-header { 
    24432443        padding: 0 0.307692308em 0 0.538461538em;
    24442444}
    24452445
     2446.site-footer span[role=separator] {
     2447        font-family: Montserrat, sans-serif;
     2448        opacity: 0.7;
     2449        padding: 0 0.307692308em 0 0.538461538em;
     2450}
     2451.site-footer span[role=separator]::before {
     2452        content: '/';
     2453}
     2454
    24462455
    24472456/**
    24482457 * 12.0 - Media
  • src/wp-content/themes/twentyten/footer.php

    diff --git src/wp-content/themes/twentyten/footer.php src/wp-content/themes/twentyten/footer.php
    index bb32687930..ce7268b30c 100644
     
    2727                                <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
    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
    3237                        <div id="site-generator">
  • src/wp-content/themes/twentyten/style.css

    diff --git src/wp-content/themes/twentyten/style.css src/wp-content/themes/twentyten/style.css
    index d73dadd075..9f36010b50 100644
    img#wpstats { 
    13181318        display: block;
    13191319        margin: 0 auto 10px;
    13201320}
     1321#site-info span[role=separator] {
     1322        padding: 0 0.7em 0 0.3em;
     1323}
     1324#site-info span[role=separator]::before {
     1325        content: '/';
     1326}
    13211327
    13221328
    13231329/* =Mobile Safari ( iPad, iPhone and iPod Touch )
  • src/wp-content/themes/twentythirteen/footer.php

    diff --git src/wp-content/themes/twentythirteen/footer.php src/wp-content/themes/twentythirteen/footer.php
    index 37eef9b332..55085e8c82 100644
     
    1616
    1717                        <div class="site-info">
    1818                                <?php do_action( 'twentythirteen_credits' ); ?>
     19                                <?php
     20                                if ( function_exists( 'the_privacy_policy_link' ) ) {
     21                                        the_privacy_policy_link( '', '<span role="separator" aria-hidden="true"></span>' );
     22                                }
     23                                ?>
    1924                                <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentythirteen' ) ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentythirteen' ), 'WordPress' ); ?></a>
    2025                        </div><!-- .site-info -->
    2126                </footer><!-- #colophon -->
  • src/wp-content/themes/twentythirteen/style.css

    diff --git src/wp-content/themes/twentythirteen/style.css src/wp-content/themes/twentythirteen/style.css
    index 1506934978..51e7513944 100644
    footer.entry-meta { 
    27052705        margin: -10px auto 0;
    27062706}
    27072707
     2708.site-footer span[role=separator] {
     2709        padding: 0 0.4em 0 0.5em;
     2710}
     2711.site-footer span[role=separator]::before {
     2712        content: '/';
     2713}
    27082714
    27092715/**
    27102716 * 8.0 Media Queries
  • src/wp-content/themes/twentytwelve/footer.php

    diff --git src/wp-content/themes/twentytwelve/footer.php src/wp-content/themes/twentytwelve/footer.php
    index b65e115d34..eb6e1d354a 100644
     
    1313        <footer id="colophon" role="contentinfo">
    1414                <div class="site-info">
    1515                        <?php do_action( 'twentytwelve_credits' ); ?>
     16                        <?php
     17                        if ( function_exists( 'the_privacy_policy_link' ) ) {
     18                                the_privacy_policy_link( '', '<span role="separator" aria-hidden="true"></span>' );
     19                        }
     20                        ?>
    1621                        <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentytwelve' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentytwelve' ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentytwelve' ), 'WordPress' ); ?></a>
    1722                </div><!-- .site-info -->
    1823        </footer><!-- #colophon -->
  • src/wp-content/themes/twentytwelve/style.css

    diff --git src/wp-content/themes/twentytwelve/style.css src/wp-content/themes/twentytwelve/style.css
    index 9c4dce365b..96de1300af 100644
    footer[role="contentinfo"] a { 
    694694footer[role="contentinfo"] a:hover {
    695695        color: #21759b;
    696696}
     697.site-info span[role=separator] {
     698        padding: 0 0.4em 0 0.6em;
     699}
     700.site-info span[role=separator]::before {
     701        content: '/';
     702}
    697703
    698704
    699705/* =Main content and comment content