WordPress.org

Make WordPress Core

Opened 14 months ago

Last modified 7 months ago

#44837 new enhancement

Coding Indentation Issues

Reported by: prashantvatsh Owned by:
Milestone: Awaiting Review Priority: normal
Severity: minor Version: 4.9.8
Component: Administration Keywords: dev-feedback has-patch
Focuses: coding-standards Cc:
PR Number:

Description (last modified by SergeyBiryukov)

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

Attachments (1)

edit-tags.php.patch (21.3 KB) - added by promz 13 months ago.
Fixed the indentation issue.

Download all attachments as: .zip

Change History (8)

#1 @prashantvatsh
14 months ago

  • Type changed from defect (bug) to enhancement

#2 @prashantvatsh
14 months ago

  • Version set to 4.9.8

This ticket was mentioned in Slack in #core-coding-standards by prashantvatsh. View the logs.


14 months ago

#4 @mukesh27
14 months ago

  • Focuses coding-standards added
  • Severity changed from normal to minor

#5 @SergeyBiryukov
14 months ago

  • Component changed from General to Administration
  • Description modified (diff)

@promz
13 months ago

Fixed the indentation issue.

#6 @prashantvatsh
13 months ago

  • Keywords has-patch added

This ticket was mentioned in Slack in #core-coding-standards by prashantvatsh. View the logs.


7 months ago

Note: See TracTickets for help on using tickets.