WordPress.org

Make WordPress Core

Changeset 50357


Ignore:
Timestamp:
02/16/2021 06:47:39 PM (3 months ago)
Author:
johnbillion
Message:

Posts, Post Types: Update the styling of the legacy Links editing screen.

This brings its styling inline with other meta boxes in the admin area.

Props antonlukin, kburgoine, grzim, sabernhardt, pbiron, audrasjb

Fixes #48782

Location:
trunk/src/wp-admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/common.css

    r50278 r50357  
    24542454
    24552455#namediv input {
    2456     width: 98%;
     2456    width: 100%;
    24572457}
    24582458
  • trunk/src/wp-admin/css/edit.css

    r50278 r50357  
    7878input#link_description,
    7979input#link_url {
    80     width: 98%;
     80    width: 100%;
    8181}
    8282
     
    655655}
    656656
     657.link-php #poststuff .inside,
     658.link-add-php #poststuff .inside {
     659    margin-top: 12px;
     660}
     661
    657662#poststuff .stuffbox .inside {
    658663    margin: 0;
  • trunk/src/wp-admin/edit-link-form.php

    r48292 r50357  
    111111<div id="post-body" class="metabox-holder columns-<?php echo ( 1 === get_current_screen()->get_columns() ) ? '1' : '2'; ?>">
    112112<div id="post-body-content">
    113 <div id="namediv" class="stuffbox">
    114 <h2><label for="link_name"><?php _ex( 'Name', 'link name' ); ?></label></h2>
     113<div id="namediv" class="postbox">
     114<h2 class="postbox-header"><label for="link_name"><?php _ex( 'Name', 'link name' ); ?></label></h2>
    115115<div class="inside">
    116116    <input type="text" name="link_name" size="30" maxlength="255" value="<?php echo esc_attr( $link->link_name ); ?>" id="link_name" />
     
    119119</div>
    120120
    121 <div id="addressdiv" class="stuffbox">
    122 <h2><label for="link_url"><?php _e( 'Web Address' ); ?></label></h2>
     121<div id="addressdiv" class="postbox">
     122<h2 class="postbox-header"><label for="link_url"><?php _e( 'Web Address' ); ?></label></h2>
    123123<div class="inside">
    124124    <input type="text" name="link_url" size="30" maxlength="255" class="code" value="<?php echo esc_attr( $link->link_url ); ?>" id="link_url" />
     
    127127</div>
    128128
    129 <div id="descriptiondiv" class="stuffbox">
    130 <h2><label for="link_description"><?php _e( 'Description' ); ?></label></h2>
     129<div id="descriptiondiv" class="postbox">
     130<h2 class="postbox-header"><label for="link_description"><?php _e( 'Description' ); ?></label></h2>
    131131<div class="inside">
    132132    <input type="text" name="link_description" size="30" maxlength="255" value="<?php echo isset( $link->link_description ) ? esc_attr( $link->link_description ) : ''; ?>" id="link_description" />
Note: See TracChangeset for help on using the changeset viewer.