WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/11/2008 11:19:09 PM (12 years ago)
Author:
ryan
Message:

Use full slug, not abbreviated slug, when editing. Props nbachiyski. fixes #5816

File:
1 edited

Legend:

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

    r6761 r6794  
    556556        return '';
    557557    }
    558     $title = __('You can edit this part of the permalink using the Edit button on the right');
     558    $title = __('Click to edit this part of the permalink');
    559559    if (strlen($post_name) > 30) {
    560         $post_name = substr($post_name, 0, 14). '…' . substr($post_name, -14);
    561     }
    562     $post_name_html = '<span id="editable-post-name" title="'.$title.'">'.$post_name.'</span>';
     560        $post_name_abridged = substr($post_name, 0, 14). '&hellip;' . substr($post_name, -14);
     561    } else {
     562        $post_name_abridged = $post_name;
     563    }
     564    $post_name_html = '<span id="editable-post-name" title="'.$title.'">'.$post_name_abridged.'</span><span id="editable-post-name-full">'.$post_name.'</span>';
    563565    $display_link = str_replace('%postname%', $post_name_html, $permalink);
    564566    return $display_link;
Note: See TracChangeset for help on using the changeset viewer.