WordPress.org

Make WordPress Core

Changeset 20077


Ignore:
Timestamp:
03/02/2012 07:52:23 PM (6 years ago)
Author:
nacin
Message:

In miscellaneous publishing actions, use :last-child instead of a separate misc-pub-section-last class to control borders. Allows for sane use of the post_submitbox_misc_actions hook. (Actually uses :first-child for browser compat reasons.) fixes #19604.

Location:
trunk/wp-admin
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/css/colors-classic.dev.css

    r20076 r20077  
    18341834
    18351835#post-body .misc-pub-section {
    1836     border-right-color: #eee;
     1836    border-left-color: #eee;
    18371837}
    18381838
  • trunk/wp-admin/css/colors-fresh.dev.css

    r20076 r20077  
    14691469
    14701470#post-body .misc-pub-section {
    1471     border-right-color: #eee;
     1471    border-left-color: #eee;
    14721472}
    14731473
  • trunk/wp-admin/css/wp-admin.dev.css

    r20076 r20077  
    940940    padding: 10px 10px 8px;
    941941    clear: both;
    942     border-top: none;
     942    border-top: 1px solid #f5f5f5;
     943    margin-top: -2px;
     944}
     945
     946#post-body #major-publishing-actions {
     947    border-top: 0;
     948    margin-top: 0;
    943949}
    944950
     
    965971
    966972#post-body .misc-pub-section {
    967     border-right-width: 1px;
    968     border-right-style: solid;
     973    border-left-width: 1px;
     974    border-left-style: solid;
    969975    border-top: 0;
    970976    border-bottom: 0;
     
    972978    float: left;
    973979    max-width: 32%;
     980}
     981
     982#post-body .misc-pub-section:first-child {
     983    border-left: 0;
    974984}
    975985
     
    9911001    border-top-width: 0;
    9921002}
     1003
    9931004.misc-pub-section-last {
    9941005    border-bottom-width: 0;
  • trunk/wp-admin/edit-form-comment.php

    r19981 r20077  
    4545</div>
    4646
    47 <div class="misc-pub-section curtime misc-pub-section-last">
     47<div class="misc-pub-section curtime">
    4848<?php
    4949// translators: Publish box date format, see http://php.net/date
  • trunk/wp-admin/includes/meta-boxes.php

    r19853 r20077  
    5858<div id="misc-publishing-actions">
    5959
    60 <div class="misc-pub-section<?php if ( !$can_publish ) { echo ' misc-pub-section-last'; } ?>"><label for="post_status"><?php _e('Status:') ?></label>
     60<div class="misc-pub-section"><label for="post_status"><?php _e('Status:') ?></label>
    6161<span id="post-status-display">
    6262<?php
     
    108108</div><?php // /misc-pub-section ?>
    109109
    110 <div class="misc-pub-section " id="visibility">
     110<div class="misc-pub-section" id="visibility">
    111111<?php _e('Visibility:'); ?> <span id="post-visibility-display"><?php
    112112
     
    175175
    176176if ( $can_publish ) : // Contributors don't get to choose the date of publish ?>
    177 <div class="misc-pub-section curtime misc-pub-section-last">
     177<div class="misc-pub-section curtime">
    178178    <span id="timestamp">
    179179    <?php printf($stamp, $date); ?></span>
     
    616616
    617617<div id="misc-publishing-actions">
    618 <div class="misc-pub-section misc-pub-section-last">
     618<div class="misc-pub-section">
    619619    <label for="link_private" class="selectit"><input id="link_private" name="link_visible" type="checkbox" value="N" <?php checked($link->link_visible, 'N'); ?> /> <?php _e('Keep this link private') ?></label>
    620620</div>
Note: See TracChangeset for help on using the changeset viewer.