mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-12-06 12:51:58 +00:00
Update deprecated attributes. Props hansengel. fixes #6037
git-svn-id: https://develop.svn.wordpress.org/trunk@7104 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -86,9 +86,9 @@ class BW_Import {
|
||||
|
||||
echo '<li>';
|
||||
if ($post_id = post_exists($post_title, $post_content, $post_date)) {
|
||||
printf(__('Post <i>%s</i> already exists.'), stripslashes($post_title));
|
||||
printf(__('Post <em>%s</em> already exists.'), stripslashes($post_title));
|
||||
} else {
|
||||
printf(__('Importing post <i>%s</i>...'), stripslashes($post_title));
|
||||
printf(__('Importing post <em>%s</em>...'), stripslashes($post_title));
|
||||
$postdata = compact('post_author', 'post_date', 'post_content', 'post_title', 'post_status');
|
||||
$post_id = wp_insert_post($postdata);
|
||||
if ( is_wp_error( $post_id ) ) {
|
||||
|
||||
@@ -66,9 +66,9 @@ class LJ_Import {
|
||||
|
||||
echo '<li>';
|
||||
if ($post_id = post_exists($post_title, $post_content, $post_date)) {
|
||||
printf(__('Post <i>%s</i> already exists.'), stripslashes($post_title));
|
||||
printf(__('Post <em>%s</em> already exists.'), stripslashes($post_title));
|
||||
} else {
|
||||
printf(__('Importing post <i>%s</i>...'), stripslashes($post_title));
|
||||
printf(__('Importing post <em>%s</em>...'), stripslashes($post_title));
|
||||
$postdata = compact('post_author', 'post_date', 'post_content', 'post_title', 'post_status');
|
||||
$post_id = wp_insert_post($postdata);
|
||||
if ( is_wp_error( $post_id ) )
|
||||
|
||||
@@ -152,7 +152,7 @@ class MT_Import {
|
||||
<div class="wrap">
|
||||
<h2><?php _e('Assign Authors'); ?></h2>
|
||||
<p><?php _e('To make it easier for you to edit and save the imported posts and drafts, you may want to change the name of the author of the posts. For example, you may want to import all the entries as admin\'s entries.'); ?></p>
|
||||
<p><?php _e('Below, you can see the names of the authors of the MovableType posts in <i>italics</i>. For each of these names, you can either pick an author in your WordPress installation from the menu, or enter a name for the author in the textbox.'); ?></p>
|
||||
<p><?php _e('Below, you can see the names of the authors of the MovableType posts in <em>italics</em>. For each of these names, you can either pick an author in your WordPress installation from the menu, or enter a name for the author in the textbox.'); ?></p>
|
||||
<p><?php _e('If a new user is created by WordPress, a password will be randomly generated. Manually change the user\'s details if necessary.'); ?></p>
|
||||
<?php
|
||||
|
||||
@@ -205,10 +205,10 @@ class MT_Import {
|
||||
|
||||
if ( $post_id = post_exists($post->post_title, '', $post->post_date) ) {
|
||||
echo '<li>';
|
||||
printf(__('Post <i>%s</i> already exists.'), stripslashes($post->post_title));
|
||||
printf(__('Post <em>%s</em> already exists.'), stripslashes($post->post_title));
|
||||
} else {
|
||||
echo '<li>';
|
||||
printf(__('Importing post <i>%s</i>...'), stripslashes($post->post_title));
|
||||
printf(__('Importing post <em>%s</em>...'), stripslashes($post->post_title));
|
||||
|
||||
if ( '' != trim( $post->extended ) )
|
||||
$post->post_content .= "\n<!--more-->\n$post->extended";
|
||||
|
||||
@@ -381,7 +381,7 @@ class WP_Import {
|
||||
|
||||
if ( $post_exists ) {
|
||||
echo '<li>';
|
||||
printf(__('Post <i>%s</i> already exists.'), stripslashes($post_title));
|
||||
printf(__('Post <em>%s</em> already exists.'), stripslashes($post_title));
|
||||
} else {
|
||||
|
||||
// If it has parent, process parent first.
|
||||
@@ -412,7 +412,7 @@ class WP_Import {
|
||||
return $post_id;
|
||||
}
|
||||
else {
|
||||
printf(__('Importing post <i>%s</i>...'), stripslashes($post_title));
|
||||
printf(__('Importing post <em>%s</em>...'), stripslashes($post_title));
|
||||
$comment_post_ID = $post_id = wp_insert_post($postdata);
|
||||
}
|
||||
|
||||
@@ -516,7 +516,7 @@ class WP_Import {
|
||||
|
||||
function process_attachment($postdata, $remote_url) {
|
||||
if ($this->fetch_attachments and $remote_url) {
|
||||
printf( __('Importing attachment <i>%s</i>... '), htmlspecialchars($remote_url) );
|
||||
printf( __('Importing attachment <em>%s</em>... '), htmlspecialchars($remote_url) );
|
||||
$upload = $this->fetch_remote_file($postdata, $remote_url);
|
||||
if ( is_wp_error($upload) ) {
|
||||
printf( __('Remote file error: %s'), htmlspecialchars($upload->get_error_message()) );
|
||||
@@ -551,7 +551,7 @@ class WP_Import {
|
||||
return $post_id;
|
||||
}
|
||||
else {
|
||||
printf( __('Skipping attachment <i>%s</i>'), htmlspecialchars($remote_url) );
|
||||
printf( __('Skipping attachment <em>%s</em>'), htmlspecialchars($remote_url) );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user