mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-18 12:35:03 +00:00
Coding Standards: Improve code layout in wp-admin/includes/class-wp-media-list-table.php
.
This allows for better readability and easier understanding of where each section opens and closes. Props laxman-prajapati, hansjovisyoast, audrasjb. Fixes #51014. Built from https://develop.svn.wordpress.org/trunk@49975 git-svn-id: http://core.svn.wordpress.org/trunk@49676 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a817f47d30
commit
b88116d24f
@ -296,7 +296,8 @@ class WP_Media_List_Table extends WP_List_Table {
|
||||
|
||||
<div class="search-form">
|
||||
<label for="media-search-input" class="media-search-input-label"><?php esc_html_e( 'Search' ); ?></label>
|
||||
<input type="search" id="media-search-input" class="search" name="s" value="<?php _admin_search_query(); ?>"></div>
|
||||
<input type="search" id="media-search-input" class="search" name="s" value="<?php _admin_search_query(); ?>">
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
@ -512,14 +513,9 @@ class WP_Media_List_Table extends WP_List_Table {
|
||||
$parent_type = get_post_type_object( $parent->post_type );
|
||||
|
||||
if ( $parent_type && $parent_type->show_ui && current_user_can( 'edit_post', $post->post_parent ) ) {
|
||||
?>
|
||||
<strong><a href="<?php echo get_edit_post_link( $post->post_parent ); ?>">
|
||||
<?php echo $title; ?></a></strong>
|
||||
<?php
|
||||
printf( '<strong><a href="%s">%s</a></strong>', get_edit_post_link( $post->post_parent ), $title );
|
||||
} elseif ( $parent_type && current_user_can( 'read_post', $post->post_parent ) ) {
|
||||
?>
|
||||
<strong><?php echo $title; ?></strong>
|
||||
<?php
|
||||
printf( '<strong>%s</strong>', $title );
|
||||
} else {
|
||||
_e( '(Private post)' );
|
||||
}
|
||||
@ -650,9 +646,8 @@ class WP_Media_List_Table extends WP_List_Table {
|
||||
|
||||
while ( have_posts() ) :
|
||||
the_post();
|
||||
if (
|
||||
( $this->is_trash && 'trash' !== $post->post_status )
|
||||
|| ( ! $this->is_trash && 'trash' === $post->post_status )
|
||||
if ( $this->is_trash && 'trash' !== $post->post_status
|
||||
|| ! $this->is_trash && 'trash' === $post->post_status
|
||||
) {
|
||||
continue;
|
||||
}
|
||||
|
@ -13,7 +13,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.7-alpha-49974';
|
||||
$wp_version = '5.7-alpha-49975';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
x
Reference in New Issue
Block a user