mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-24 00:11:41 +01:00
edit.php markup fixes. Props wahgnube. fixes #15260
git-svn-id: http://svn.automattic.com/wordpress/trunk@16134 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5c88dc48e7
commit
70295ae440
@ -553,6 +553,7 @@ class WP_Posts_List_Table extends WP_List_Table {
|
|||||||
echo $this->row_actions( $actions );
|
echo $this->row_actions( $actions );
|
||||||
|
|
||||||
get_inline_data( $post );
|
get_inline_data( $post );
|
||||||
|
echo '</td>';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'date':
|
case 'date':
|
||||||
@ -599,7 +600,7 @@ class WP_Posts_List_Table extends WP_List_Table {
|
|||||||
$out = array();
|
$out = array();
|
||||||
foreach ( $categories as $c ) {
|
foreach ( $categories as $c ) {
|
||||||
$out[] = sprintf( '<a href="%s">%s</a>',
|
$out[] = sprintf( '<a href="%s">%s</a>',
|
||||||
add_query_arg( array( 'post_type' => $post->post_type, 'category_name' => $c->slug ), 'edit.php' ),
|
esc_url( add_query_arg( array( 'post_type' => $post->post_type, 'category_name' => $c->slug ), 'edit.php' ) ),
|
||||||
esc_html( sanitize_term_field( 'name', $c->name, $c->term_id, 'category', 'display' ) )
|
esc_html( sanitize_term_field( 'name', $c->name, $c->term_id, 'category', 'display' ) )
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -619,7 +620,7 @@ class WP_Posts_List_Table extends WP_List_Table {
|
|||||||
$out = array();
|
$out = array();
|
||||||
foreach ( $tags as $c ) {
|
foreach ( $tags as $c ) {
|
||||||
$out[] = sprintf( '<a href="%s">%s</a>',
|
$out[] = sprintf( '<a href="%s">%s</a>',
|
||||||
add_query_arg( array( 'post_type' => $post->post_type, 'tag' => $c->slug ), 'edit.php' ),
|
esc_url( add_query_arg( array( 'post_type' => $post->post_type, 'tag' => $c->slug ), 'edit.php' ) ),
|
||||||
esc_html( sanitize_term_field( 'name', $c->name, $c->term_id, 'tag', 'display' ) )
|
esc_html( sanitize_term_field( 'name', $c->name, $c->term_id, 'tag', 'display' ) )
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -647,7 +648,7 @@ class WP_Posts_List_Table extends WP_List_Table {
|
|||||||
?>
|
?>
|
||||||
<td <?php echo $attributes ?>><?php
|
<td <?php echo $attributes ?>><?php
|
||||||
printf( '<a href="%s">%s</a>',
|
printf( '<a href="%s">%s</a>',
|
||||||
add_query_arg( array( 'post_type' => $post->post_type, 'author' => get_the_author_meta( 'ID' ) ), 'edit.php' ),
|
esc_url( add_query_arg( array( 'post_type' => $post->post_type, 'author' => get_the_author_meta( 'ID' ) ), 'edit.php' )),
|
||||||
get_the_author()
|
get_the_author()
|
||||||
);
|
);
|
||||||
?></td>
|
?></td>
|
||||||
|
Loading…
Reference in New Issue
Block a user