Fix arg order in [13104]
git-svn-id: http://svn.automattic.com/wordpress/trunk@13107 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b4f362264e
commit
f0c91f4ba2
|
@ -1366,7 +1366,7 @@ function _post_row($a_post, $pending_comments, $mode) {
|
||||||
}
|
}
|
||||||
if ( in_array($post->post_status, array('pending', 'draft')) ) {
|
if ( in_array($post->post_status, array('pending', 'draft')) ) {
|
||||||
if ( current_user_can($post_type_object->edit_cap, $post->ID) )
|
if ( current_user_can($post_type_object->edit_cap, $post->ID) )
|
||||||
$actions['view'] = '<a href="' . add_query_arg( get_permalink($post->ID), 'preview', 'true' ) . '" title="' . esc_attr(sprintf(__('Preview “%s”'), $title)) . '" rel="permalink">' . __('Preview') . '</a>';
|
$actions['view'] = '<a href="' . add_query_arg( 'preview', 'true', get_permalink($post->ID) ) . '" title="' . esc_attr(sprintf(__('Preview “%s”'), $title)) . '" rel="permalink">' . __('Preview') . '</a>';
|
||||||
} elseif ( 'trash' != $post->post_status ) {
|
} elseif ( 'trash' != $post->post_status ) {
|
||||||
$actions['view'] = '<a href="' . get_permalink($post->ID) . '" title="' . esc_attr(sprintf(__('View “%s”'), $title)) . '" rel="permalink">' . __('View') . '</a>';
|
$actions['view'] = '<a href="' . get_permalink($post->ID) . '" title="' . esc_attr(sprintf(__('View “%s”'), $title)) . '" rel="permalink">' . __('View') . '</a>';
|
||||||
}
|
}
|
||||||
|
@ -1588,7 +1588,7 @@ foreach ( $posts_columns as $column_name => $column_display_name ) {
|
||||||
}
|
}
|
||||||
if ( in_array($post->post_status, array('pending', 'draft')) ) {
|
if ( in_array($post->post_status, array('pending', 'draft')) ) {
|
||||||
if ( current_user_can($post_type_object->edit_cap, $page->ID) )
|
if ( current_user_can($post_type_object->edit_cap, $page->ID) )
|
||||||
$actions['view'] = '<a href="' . add_query_arg( get_permalink($page->ID), 'preview', 'true' ) . '" title="' . esc_attr(sprintf(__('Preview “%s”'), $title)) . '" rel="permalink">' . __('Preview') . '</a>';
|
$actions['view'] = '<a href="' . add_query_arg( 'preview', 'true', get_permalink($page->ID) ) . '" title="' . esc_attr(sprintf(__('Preview “%s”'), $title)) . '" rel="permalink">' . __('Preview') . '</a>';
|
||||||
} elseif ( $post->post_status != 'trash' ) {
|
} elseif ( $post->post_status != 'trash' ) {
|
||||||
$actions['view'] = '<a href="' . get_permalink($page->ID) . '" title="' . esc_attr(sprintf(__('View “%s”'), $title)) . '" rel="permalink">' . __('View') . '</a>';
|
$actions['view'] = '<a href="' . get_permalink($page->ID) . '" title="' . esc_attr(sprintf(__('View “%s”'), $title)) . '" rel="permalink">' . __('View') . '</a>';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue