[wp-trac] [WordPress Trac] #44837: Coding Indentation Issues
WordPress Trac
noreply at wordpress.org
Mon Aug 27 15:22:26 UTC 2018
#44837: Coding Indentation Issues
----------------------------+-------------------------------
Reporter: prashantvatsh | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: 4.9.8
Severity: minor | Resolution:
Keywords: dev-feedback | Focuses: coding-standards
----------------------------+-------------------------------
Changes (by SergeyBiryukov):
* component: General => Administration
Old description:
> I am seeing in wp-admin files that coding indentation is missing like
> this file edit-tags.php
>
> The codes are written like this
>
> <form class="search-form wp-clearfix" method="get">
> <input type="hidden" name="taxonomy" value="<?php echo esc_attr(
> $taxonomy ); ?>" />
> <input type="hidden" name="post_type" value="<?php echo esc_attr(
> $post_type ); ?>" />
>
> <?php $wp_list_table->search_box( $tax->labels->search_items, 'tag' ); ?>
>
> </form>
>
> which needs to be indented properly to make it more understandable. This
> can be check in other files as well where we are writing HTML as well as
> PHP. In this tickets preview how exactly the code is written so I am
> adding a screenshot as well https://prnt.sc/kmcjeu
New description:
I am seeing in wp-admin files that coding indentation is missing like this
file edit-tags.php
The codes are written like this
{{{
<form class="search-form wp-clearfix" method="get">
<input type="hidden" name="taxonomy" value="<?php echo esc_attr( $taxonomy
); ?>" />
<input type="hidden" name="post_type" value="<?php echo esc_attr(
$post_type ); ?>" />
<?php $wp_list_table->search_box( $tax->labels->search_items, 'tag' ); ?>
</form>
}}}
which needs to be indented properly to make it more understandable. This
can be check in other files as well where we are writing HTML as well as
PHP. In this tickets preview how exactly the code is written so I am
adding a screenshot as well https://prnt.sc/kmcjeu
--
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44837#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list