Typo fixes from mdawaffe. fixes #3474
git-svn-id: https://develop.svn.wordpress.org/trunk@4664 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d57cc26c58
commit
4942019a9c
@ -561,7 +561,7 @@ function add_link() {
|
|||||||
|
|
||||||
function edit_link( $link_id = '' ) {
|
function edit_link( $link_id = '' ) {
|
||||||
if (!current_user_can( 'manage_links' ))
|
if (!current_user_can( 'manage_links' ))
|
||||||
wp_die( __( 'Cheatin&8217; uh?' ));
|
wp_die( __( 'Cheatin’ uh?' ));
|
||||||
|
|
||||||
$_POST['link_url'] = wp_specialchars( $_POST['link_url'] );
|
$_POST['link_url'] = wp_specialchars( $_POST['link_url'] );
|
||||||
$_POST['link_url'] = preg_match('/^(https?|ftps?|mailto|news|irc|gopher|nntp|feed|telnet):/is', $_POST['link_url']) ? $_POST['link_url'] : 'http://' . $_POST['link_url'];
|
$_POST['link_url'] = preg_match('/^(https?|ftps?|mailto|news|irc|gopher|nntp|feed|telnet):/is', $_POST['link_url']) ? $_POST['link_url'] : 'http://' . $_POST['link_url'];
|
||||||
|
@ -34,10 +34,10 @@ case 'delete':
|
|||||||
|
|
||||||
// Don't delete the default cats.
|
// Don't delete the default cats.
|
||||||
if ( $cat_ID == get_option('default_category') )
|
if ( $cat_ID == get_option('default_category') )
|
||||||
wp_die(sprintf(__("Can&8217;t delete the <strong>%s</strong> category: this is the default one"), $cat_name));
|
wp_die(sprintf(__("Can’t delete the <strong>%s</strong> category: this is the default one"), $cat_name));
|
||||||
|
|
||||||
if ( $cat_ID == get_option('default_link_category') )
|
if ( $cat_ID == get_option('default_link_category') )
|
||||||
wp_die(sprintf(__("Can&8217;t delete the <strong>%s</strong> category: this is the default one for links"), $cat_name));
|
wp_die(sprintf(__("Can’t delete the <strong>%s</strong> category: this is the default one for links"), $cat_name));
|
||||||
|
|
||||||
wp_delete_category($cat_ID);
|
wp_delete_category($cat_ID);
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ require_once ('admin-header.php');
|
|||||||
<div class="narrow">
|
<div class="narrow">
|
||||||
<p><?php _e('When you click the button below WordPress will create an XML file for you to save to your computer.'); ?></p>
|
<p><?php _e('When you click the button below WordPress will create an XML file for you to save to your computer.'); ?></p>
|
||||||
<p><?php _e('This format, which we call WordPress eXtended RSS or WXR, will contain your posts, comments, custom fields, and categories.'); ?></p>
|
<p><?php _e('This format, which we call WordPress eXtended RSS or WXR, will contain your posts, comments, custom fields, and categories.'); ?></p>
|
||||||
<p><?php _e('Once you&8217;ve saved the download file, you can use the Import function on another WordPress blog to import this blog.'); ?></p>
|
<p><?php _e('Once you’ve saved the download file, you can use the Import function on another WordPress blog to import this blog.'); ?></p>
|
||||||
<form action="" method="get">
|
<form action="" method="get">
|
||||||
<h3><?php _e('Optional options'); ?></h3>
|
<h3><?php _e('Optional options'); ?></h3>
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ require('admin-header.php');
|
|||||||
|
|
||||||
<div id="wp-link-bookmarklet" class="wrap">
|
<div id="wp-link-bookmarklet" class="wrap">
|
||||||
<h3><?php _e('Add Link Bookmarklet'); ?></h3>
|
<h3><?php _e('Add Link Bookmarklet'); ?></h3>
|
||||||
<p><?php _e('Right click on the following link and choose "Bookmark This Link..." to create an add link shortcut. Right now this only works on Mozilla or Netscape, but we&8217;re working on it.'); ?></p>
|
<p><?php _e('Right click on the following link and choose "Bookmark This Link..." to create an add link shortcut. Right now this only works on Mozilla or Netscape, but we’re working on it.'); ?></p>
|
||||||
<?php printf('<p><a href="%s" title="'.__('Link add bookmarklet').'">'.__('Link This').'</a></p>', "javascript:void(linkmanpopup=window.open('" . get_option('siteurl') . "/wp-admin/link-add.php?action=popup&linkurl='+escape(location.href)+'&name='+escape(document.title),'LinkManager','scrollbars=yes,width=750,height=550,left=15,top=15,status=yes,resizable=yes'));linkmanpopup.focus();window.focus();linkmanpopup.focus();") ?>
|
<?php printf('<p><a href="%s" title="'.__('Link add bookmarklet').'">'.__('Link This').'</a></p>', "javascript:void(linkmanpopup=window.open('" . get_option('siteurl') . "/wp-admin/link-add.php?action=popup&linkurl='+escape(location.href)+'&name='+escape(document.title),'LinkManager','scrollbars=yes,width=750,height=550,left=15,top=15,status=yes,resizable=yes'));linkmanpopup.focus();window.focus();linkmanpopup.focus();") ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -79,7 +79,7 @@ $plugins = get_plugins();
|
|||||||
|
|
||||||
if (empty($plugins)) {
|
if (empty($plugins)) {
|
||||||
echo '<p>';
|
echo '<p>';
|
||||||
_e("Couldn&8217;t open plugins directory or there are no plugins available."); // TODO: make more helpful
|
_e("Couldn’t open plugins directory or there are no plugins available."); // TODO: make more helpful
|
||||||
echo '</p>';
|
echo '</p>';
|
||||||
} else {
|
} else {
|
||||||
?>
|
?>
|
||||||
|
Loading…
Reference in New Issue
Block a user