Make WordPress Core


Ignore:
Timestamp:
11/10/2016 02:55:56 AM (8 years ago)
Author:
helen
Message:

Customize: Make "Add New Page" buttons less intrusive.

They now better match the existing add functionality from the category metabox and are better separated from the surrounding inputs. All hail .button-link.

fixes #38164. see #35126.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-control.php

    r39051 r39194  
    589589                </label>
    590590                <?php if ( $this->allow_addition && current_user_can( 'publish_pages' ) && current_user_can( 'edit_theme_options' ) ) : // Currently tied to menus functionality. ?>
    591                     <button type="button" class="button add-new-toggle"><?php echo get_post_type_object( 'page' )->labels->add_new_item; ?></button>
     591                    <button type="button" class="button-link add-new-toggle"><?php
     592                        /* translators: %s: add new page label */
     593                        printf( __( '+ %s' ), get_post_type_object( 'page' )->labels->add_new_item );
     594                    ?></button>
    592595                    <div class="new-content-item">
    593596                        <label for="create-input-<?php echo $this->id; ?>"><span class="screen-reader-text"><?php _e( 'New page title' ); ?></span></label>
Note: See TracChangeset for help on using the changeset viewer.