WordPress.org

Make WordPress Core

Changeset 12944


Ignore:
Timestamp:
02/04/2010 04:45:55 PM (11 years ago)
Author:
ryan
Message:

Add lrm to fix bidi test display in RTL languages. Props ramiy. fixes #11919

File:
1 edited

Legend:

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

    r12873 r12944  
    10721072    $display_link = str_replace(array('%pagename%','%postname%'), $post_name_html, $permalink);
    10731073    $view_link = str_replace(array('%pagename%','%postname%'), $post_name, $permalink);
    1074     $return = '<strong>' . __('Permalink:') . "</strong>\n" . '<span id="sample-permalink">' . $display_link . "</span>\n";
     1074    $return =  '<strong>' . __('Permalink:') . "</strong>\n";
     1075    $return .= '<span id="sample-permalink">' . $display_link . "</span>\n";
     1076    $return .= '&lrm;'; // Fix bi-directional text display defect in RTL languages.
    10751077    $return .= '<span id="edit-slug-buttons"><a href="#post_name" class="edit-slug button hide-if-no-js" onclick="editPermalink(' . $id . '); return false;">' . __('Edit') . "</a></span>\n";
    10761078    $return .= '<span id="editable-post-name-full">' . $post_name . "</span>\n";
Note: See TracChangeset for help on using the changeset viewer.