WordPress.org

Make WordPress Core

Ticket #18306: 18306.9-refresh.diff

File 18306.9-refresh.diff, 4.5 KB (added by DrewAPicture, 6 years ago)

refresh

  • wp-admin/includes/post.php

     
    10731073        }
    10741074
    10751075        if ( false === strpos($permalink, '%postname%') && false === strpos($permalink, '%pagename%') ) {
     1076                if ( isset( $view_post ) )
     1077                        $permalink = '<a href="' . $permalink . '" title="' . esc_attr( $view_post ) . '" target="_blank">' . $permalink . '</a>';
    10761078                $return = '<strong>' . __('Permalink:') . "</strong>\n" . '<span id="sample-permalink" tabindex="-1">' . $permalink . "</span>\n";
    10771079                if ( '' == get_option( 'permalink_structure' ) && current_user_can( 'manage_options' ) && !( 'page' == get_option('show_on_front') && $id == get_option('page_on_front') ) )
    10781080                        $return .= '<span id="change-permalinks"><a href="options-permalink.php" class="button button-small" target="_blank">' . __('Change Permalinks') . "</a></span>\n";
    1079                 if ( isset($view_post) )
    1080                         $return .= "<span id='view-post-btn'><a href='$permalink' class='button button-small'>$view_post</a></span>\n";
    10811081
    10821082                $return = apply_filters('get_sample_permalink_html', $return, $id, $new_title, $new_slug);
    10831083
     
    10981098                }
    10991099        }
    11001100
    1101         $post_name_html = '<span id="editable-post-name" title="' . $title . '">' . $post_name_abridged . '</span>';
     1101        $post_name_html = '<span id="editable-post-name">' . $post_name_abridged . '</span>';
    11021102        $display_link = str_replace(array('%pagename%','%postname%'), $post_name_html, $permalink);
    11031103        $view_link = str_replace(array('%pagename%','%postname%'), $post_name, $permalink);
     1104        if ( isset( $view_post ) )
     1105                $display_link = '<a href="' . $view_link . '" title="' . esc_attr( $view_post ) . '" target="_blank">' . $display_link . '</a>';
    11041106        $return =  '<strong>' . __('Permalink:') . "</strong>\n";
    11051107        $return .= '<span id="sample-permalink" tabindex="-1">' . $display_link . "</span>\n";
    11061108        $return .= '&lrm;'; // Fix bi-directional text display defect in RTL languages.
    11071109        $return .= '<span id="edit-slug-buttons"><a href="#post_name" class="edit-slug button button-small hide-if-no-js" onclick="editPermalink(' . $id . '); return false;">' . __('Edit') . "</a></span>\n";
    11081110        $return .= '<span id="editable-post-name-full">' . $post_name . "</span>\n";
    1109         if ( isset($view_post) )
    1110                 $return .= "<span id='view-post-btn'><a href='$view_link' class='button button-small'>$view_post</a></span>\n";
    11111111
    11121112        $return = apply_filters('get_sample_permalink_html', $return, $id, $new_title, $new_slug);
    11131113
  • wp-admin/js/post.js

     
    618618
    619619                makeSlugeditClickable = function() {
    620620                        $('#editable-post-name').click(function() {
    621                                 $('#edit-slug-buttons').children('.edit-slug').click();
     621                                var newSlugField = $('#new-post-slug');
     622                               
     623                                if (newSlugField.length != 0) {
     624                                        newSlugField.focus();
     625                                        return false;
     626                                }
    622627                        });
    623628                }
    624629                makeSlugeditClickable();
  • wp-admin/css/colors-fresh.css

     
    713713#media-items a.delete,
    714714#media-items a.delete-permanently,
    715715.plugins a.delete,
    716 .ui-tabs-nav a {
     716.ui-tabs-nav a,
     717#sample-permalink a:hover {
    717718        color: #21759b;
    718719}
    719720
     
    757758        background-color: #ddd;
    758759}
    759760
    760 #editable-post-name {
    761         background-color: #fffbcc;
    762 }
    763 
    764761#edit-slug-box strong,
    765762.tablenav .displaying-num,
    766763#submitted-on,
  • wp-admin/css/wp-admin.css

     
    28812881        font-size: 11px;
    28822882}
    28832883
     2884#editable-post-name {
     2885        font-weight: bold;
     2886}
     2887
     2888#sample-permalink a {
     2889        text-decoration: none;
     2890}
     2891
     2892#sample-permalink a:hover {
     2893        text-decoration: underline;
     2894}
     2895
    28842896#editable-post-name-full {
    28852897        display: none;
    28862898}
  • wp-admin/css/colors-classic.css

     
    722722#media-items a.delete,
    723723#media-items a.delete-permanently,
    724724.plugins a.delete,
    725 .ui-tabs-nav a {
     725.ui-tabs-nav a,
     726#sample-permalink a:hover {
    726727        color: #21759b;
    727728}
    728729
     
    766767        background-color: #ddd;
    767768}
    768769
    769 #editable-post-name {
    770         background-color: #fffbcc;
    771 }
    772 
    773770#edit-slug-box strong,
    774771.tablenav .displaying-num,
    775772#submitted-on,