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:
Ryan Boren
2008-02-29 17:09:44 +00:00
parent e29306e69c
commit afc003cd20
14 changed files with 42 additions and 42 deletions

View File

@@ -79,7 +79,7 @@ if ( 'spam' == $_GET['dt'] ) {
<table width="100%">
<tr>
<td><input type='button' class="button" value='<?php _e('No'); ?>' onclick="self.location='<?php echo get_option('siteurl'); ?>/wp-admin/edit-comments.php';" /></td>
<td align="right"><input type='submit' class="button" value='<?php echo $button; ?>' /></td>
<td style="text-align: right;"><input type='submit' class="button" value='<?php echo $button; ?>' /></td>
</tr>
</table>

View File

@@ -97,7 +97,7 @@ if ( $page_links )
<th scope="col" class="check-column"><input type="checkbox" onclick="checkAll(document.getElementById('posts-filter'));" /></th>
<th scope="col"><?php _e('Name') ?></th>
<th scope="col"><?php _e('Description') ?></th>
<th scope="col" width="90" style="text-align: center"><?php _e('Links') ?></th>
<th scope="col" style="width: 90px; text-align: center"><?php _e('Links') ?></th>
</tr>
</thead>
<tbody id="the-list" class="list:link-cat">

View File

@@ -145,10 +145,10 @@ function xfn_check($class, $value = '', $deprecated = '') {
<div id="linkxfndiv" class="postbox <?php echo postbox_classes('linkxfndiv', 'link'); ?>">
<h3><?php _e('Link Relationship (XFN)') ?></h3>
<div class="inside">
<table class="editform" width="100%" cellspacing="2" cellpadding="5">
<table class="editform" style="width: 100%;" cellspacing="2" cellpadding="5">
<tr>
<th width="20%" scope="row"><?php _e('rel:') ?></th>
<td width="80%"><input type="text" name="link_rel" id="link_rel" size="50" value="<?php echo $link->link_rel; ?>" /></td>
<th style="width: 20%;" scope="row"><?php _e('rel:') ?></th>
<td style="width: 80%;"><input type="text" name="link_rel" id="link_rel" size="50" value="<?php echo $link->link_rel; ?>" /></td>
</tr>
<tr>
<th scope="row"><?php _e('<a href="http://gmpg.org/xfn/">XFN</a> Creator:') ?></th>
@@ -258,10 +258,10 @@ function xfn_check($class, $value = '', $deprecated = '') {
<div id="linkadvanceddiv" class="postbox <?php echo postbox_classes('linkadvanceddiv', 'link'); ?>">
<h3><?php _e('Advanced') ?></h3>
<div class="inside">
<table class="editform" width="100%" cellspacing="2" cellpadding="5">
<table class="editform" style="width: 100%;" cellspacing="2" cellpadding="5">
<tr>
<th width="20%" scope="row"><?php _e('Image Address:') ?></th>
<td width="80%"><input type="text" name="link_image" size="50" value="<?php echo $link->link_image; ?>" style="width: 95%" /></td>
<th style="width: 20%;" scope="row"><?php _e('Image Address:') ?></th>
<td style="width: 80%;"><input type="text" name="link_image" size="50" value="<?php echo $link->link_image; ?>" style="width: 95%" /></td>
</tr>
<tr>
<th scope="row"><?php _e('RSS Address:') ?> </th>

View File

@@ -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 ) ) {

View File

@@ -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 ) )

View File

@@ -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";

View File

@@ -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) );
}
}

View File

@@ -56,7 +56,7 @@ function _cat_row( $category, $level, $name_override = false ) {
<th scope='row' class='check-column'><input type='checkbox' name='delete[]' value='$category->term_id' /></th>
<td>$edit</td>
<td>$category->description</td>
<td align='center'>$posts_count</td>\n\t</tr>\n";
<td style='text-align: center;'>$posts_count</td>\n\t</tr>\n";
return apply_filters('cat_row', $output);
}
@@ -84,7 +84,7 @@ function link_cat_row( $category ) {
'<th scope="row" class="check-column"> <input type="checkbox" name="delete[]" value="' . $category->term_id . '" /></th>' .
"<td>$edit</td>
<td>$category->description</td>
<td align='center'>$count</td></tr>";
<td style='text-align: center;'>$count</td></tr>";
return apply_filters( 'link_cat_row', $output );
}
@@ -722,7 +722,7 @@ function _list_meta_row( $entry, &$count ) {
$r .= "\n\t<tr id='meta-{$entry['meta_id']}' class='$style'>";
$r .= "\n\t\t<td valign='top'><input name='meta[{$entry['meta_id']}][key]' tabindex='6' type='text' size='20' value='{$entry['meta_key']}' /></td>";
$r .= "\n\t\t<td><textarea name='meta[{$entry['meta_id']}][value]' tabindex='6' rows='2' cols='30'>{$entry['meta_value']}</textarea></td>";
$r .= "\n\t\t<td align='center'><input name='updatemeta' type='submit' tabindex='6' value='".attribute_escape(__( 'Update' ))."' class='add:the-list:meta-{$entry['meta_id']} updatemeta' /><br />";
$r .= "\n\t\t<td style='text-align: center;'><input name='updatemeta' type='submit' tabindex='6' value='".attribute_escape(__( 'Update' ))."' class='add:the-list:meta-{$entry['meta_id']} updatemeta' /><br />";
$r .= "\n\t\t<input name='deletemeta[{$entry['meta_id']}]' type='submit' ";
$r .= "class='delete:the-list:meta-{$entry['meta_id']} deletemeta' tabindex='6' value='".attribute_escape(__( 'Delete' ))."' />";
$r .= "</td>\n\t</tr>";
@@ -749,7 +749,7 @@ function meta_form() {
<th><?php _e( 'Value' ) ?></th>
</tr>
<tr valign="top">
<td align="right" width="18%">
<td style="text-align: right;" style="width: 18%;">
<?php if ( $keys ) : ?>
<select id="metakeyselect" name="metakeyselect" tabindex="7">
<option value="#NONE#"><?php _e( '- Select -' ); ?></option>

View File

@@ -120,7 +120,7 @@ echo $select_order;
<?php
$link_columns = array(
'name' => '<th width="15%">' . __('Name') . '</th>',
'name' => '<th style="width: 15%;">' . __('Name') . '</th>',
'url' => '<th>' . __('URL') . '</th>',
'categories' => '<th>' . __('Categories') . '</th>',
'rel' => '<th style="text-align: center">' . __('rel') . '</th>',
@@ -196,7 +196,7 @@ if ( $links ) {
?><td><?php echo $link->link_rel; ?></td><?php
break;
case 'visible':
?><td align='center'><?php echo $visible; ?></td><?php
?><td style='text-align: center;'><?php echo $visible; ?></td><?php
break;
default:
?>

View File

@@ -240,7 +240,7 @@ echo $role_list . '</select>';
<input type="text" name="jabber" value="<?php echo $profileuser->jabber ?>" /></label>
</p>
</fieldset>
<br clear="all" />
<br style="clear: both;" />
<fieldset>
<legend><?php $is_profile_page? _e('About Yourself') : _e('About the user'); ?></legend>
<p class="desc"><?php _e('Share a little biographical information to fill out your profile. This may be shown publicly.'); ?></p>
@@ -276,8 +276,8 @@ if ( $show_password_fields ) :
}
?>
<br clear="all" />
<table width="99%" border="0" cellspacing="2" cellpadding="3" class="editform">
<br style="clear: both;" />
<table width="99%" style="border: none;" cellspacing="2" cellpadding="3" class="editform">
<?php
if(count($profileuser->caps) > count($profileuser->roles)):
?>