WordPress.org

Make WordPress Core

Ticket #29289: 29289.diff

File 29289.diff, 1.8 KB (added by florianziegler, 6 years ago)
  • wp-admin/custom-background.php

    diff --git wp-admin/custom-background.php wp-admin/custom-background.php
    index a23efda..a0a63f2 100644
    class Custom_Background { 
    312312        </p>
    313313        <p>
    314314                <label for="choose-from-library-link"><?php _e( 'Or choose an image from your media library:' ); ?></label><br />
    315                 <a id="choose-from-library-link" class="button"
     315                <a href="#" id="choose-from-library-link" class="button"
    316316                        data-choose="<?php esc_attr_e( 'Choose a Background Image' ); ?>"
    317317                        data-update="<?php esc_attr_e( 'Set as background' ); ?>"><?php _e( 'Choose Image' ); ?></a>
    318318        </p>
  • wp-admin/custom-header.php

    diff --git wp-admin/custom-header.php wp-admin/custom-header.php
    index 76f6f74..5949b54 100644
    class Custom_Image_Header { 
    555555                else
    556556                        $style = ' style="display:none;"';
    557557                ?>
    558                 <h1><a id="name" class="displaying-header-text" <?php echo $style; ?> onclick="return false;" href="<?php bloginfo('url'); ?>"><?php bloginfo( 'name' ); ?></a></h1>
     558                <h1><a id="name" class="displaying-header-text" <?php echo $style; ?> onclick="return false;" href="<?php bloginfo('url'); ?>" tabindex="-1"><?php bloginfo( 'name' ); ?></a></h1>
    559559                <div id="desc" class="displaying-header-text" <?php echo $style; ?>><?php bloginfo( 'description' ); ?></div>
    560560        </div>
    561561        <?php } ?>
    class Custom_Image_Header { 
    602602        ?>
    603603        <p>
    604604                <label for="choose-from-library-link"><?php _e( 'Or choose an image from your media library:' ); ?></label><br />
    605                 <a id="choose-from-library-link" class="button"
     605                <a href="#" id="choose-from-library-link" class="button"
    606606                        data-update-link="<?php echo esc_attr( $modal_update_href ); ?>"
    607607                        data-choose="<?php esc_attr_e( 'Choose a Custom Header' ); ?>"
    608608                        data-update="<?php esc_attr_e( 'Set as header' ); ?>"><?php _e( 'Choose Image' ); ?></a>