WordPress.org

Make WordPress Core

Changeset 10754


Ignore:
Timestamp:
03/10/2009 02:14:42 AM (12 years ago)
Author:
azaozz
Message:

Move hidden span so it's not copied together with the permalink

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/post.php

    r10749 r10754  
    989989    }
    990990
    991     $post_name_html = '<span id="editable-post-name" title="'.$title.'">'.$post_name_abridged.'</span><span id="editable-post-name-full">'.$post_name.'</span>';
     991    $post_name_html = '<span id="editable-post-name" title="' . $title . '">' . $post_name_abridged . '</span>';
    992992    $display_link = str_replace(array('%pagename%','%postname%'), $post_name_html, $permalink);
    993993    $view_link = str_replace(array('%pagename%','%postname%'), $post_name, $permalink);
    994994    $return = '<strong>' . __('Permalink:') . "</strong>\n" . '<span id="sample-permalink">' . $display_link . "</span>\n";
    995995    $return .= '<span id="edit-slug-buttons"><a href="#post_name" class="edit-slug button" onclick="edit_permalink(' . $id . '); return false;">' . __('Edit') . "</a></span>\n";
     996    $return .= '<span id="editable-post-name-full">' . $post_name . "</span>\n";
    996997    if ( isset($view_post) )
    997998        $return .= "<span id='view-post-btn'><a href='$view_link' class='button' target='_blank'>$view_post</a></span>\n";
Note: See TracChangeset for help on using the changeset viewer.