WordPress.org

Make WordPress Core

Ticket #9777: 9777.5.diff

File 9777.5.diff, 2.1 KB (added by bradt, 6 years ago)
  • wp-admin/css/common.css

    diff --git src/wp-admin/css/common.css src/wp-admin/css/common.css
    index 3b3392a..fc6183b 100644
    hr { 
    822822.submitbox .submitdelete,
    823823#media-items a.delete,
    824824#media-items a.delete-permanently,
    825 #nav-menu-footer .menu-delete {
     825#nav-menu-footer .menu-delete,
     826#delete-link a.delete  {
    826827        color: #a00;
    827828}
    828829
    abbr.required, 
    838839.submitbox .submitdelete:hover,
    839840#media-items a.delete:hover,
    840841#media-items a.delete-permanently:hover,
    841 #nav-menu-footer .menu-delete:hover {
     842#nav-menu-footer .menu-delete:hover,
     843#delete-link a.delete:hover {
    842844        color: #f00;
    843845        text-decoration: none;
    844846        border: none;
    abbr.required, 
    862864        float: left;
    863865}
    864866
     867#delete-link {
     868        line-height: 28px;
     869        vertical-align: middle;
     870        text-align: left;
     871        margin-left: 15px;
     872}
     873
     874#delete-link a {
     875        text-decoration: none;
     876}
     877
    865878#publishing-action {
    866879        text-align: right;
    867880        float: right;
  • wp-admin/edit-tag-form.php

    diff --git src/wp-admin/edit-tag-form.php src/wp-admin/edit-tag-form.php
    index 71c2dd9..4e1dc61 100644
    if ( 'category' == $taxonomy ) { 
    195195 */
    196196do_action( "{$taxonomy}_edit_form", $tag, $taxonomy );
    197197
    198 submit_button( __('Update') );
     198submit_button( __('Update'), 'primary', NULL, false, NULL );
    199199?>
     200
     201<?php if ( (int) get_option( 'default_category' ) !== $tag_ID ) : ?>
     202<span id="delete-link">
     203        <a class="delete" onclick='return showNotice.warn();'" href="<?php echo admin_url( wp_nonce_url( "edit-tags.php?action=delete&taxonomy=$taxonomy&tag_ID=$tag->term_id", 'delete-tag_' . $tag->term_id ) ) ?>"'><?php _e( 'Delete' ); ?></a>
     204</span>
     205<?php endif; ?>
    200206</form>
    201207</div>
    202208<script type="text/javascript">
  • wp-admin/edit-tags.php

    diff --git src/wp-admin/edit-tags.php src/wp-admin/edit-tags.php
    index 84e5685..c40d75e 100644
    case 'delete': 
    8888        wp_delete_term( $tag_ID, $taxonomy );
    8989
    9090        $location = add_query_arg( 'message', 2, $location );
     91        $location = remove_query_arg( array( 'tag_ID', 'action' ), $location );
    9192
    9293        break;
    9394