Make WordPress Core

Opened 8 years ago

Last modified 17 months ago

#45939 reopened defect (bug)

Coding Standards: fix <br/> in core files

Reported by: man4toman Owned by:
Priority: normal Milestone: Future Release
Component: General Version:
Severity: normal Keywords: has-patch
Cc: Focuses: coding-standards

Description

In order to ​self-closing-elements, a single space should precede the self-closing slash.

I created this patch for version 5.0.3, but this version isn't on ticket version selector.

Attachments (4)

br-fix.patch​ (1.7 KB ) - added by man4toman 8 years ago.
45939.patch​ (9.0 KB ) - added by mukesh27 8 years ago.
Patch.
45939.1.patch​ (798 bytes ) - added by sabernhardt 17 months ago.
add space in <br/> for wp-admin/network/settings.php
45939.twentynineteen.patch​ (1.2 KB ) - added by sabernhardt 17 months ago.
removes slashes from <br> in Twenty Nineteen single.php template

Download all attachments as: .zip

Change History (12)

#1 @mukesh27
8 years ago

@man4toman, I audited all <br/> occurrences in the following files:

  • src/wp-admin/custom-background.php
  • src/wp-admin/edit-comments.php
  • src/wp-admin/includes/class-wp-filesystem-base.php
  • src/wp-admin/includes/class-wp-ms-users-list-table.php
  • src/wp-admin/includes/class-wp-plugins-list-table.php
  • src/wp-admin/install.php
  • src/wp-admin/network/settings.php
  • src/wp-admin/network/site-info.php
  • src/wp-admin/options-reading.php
  • src/wp-includes/widgets/class-wp-widget-archives.php

#2 @nielslange
8 years ago

  • Keywords needs-testing added

#3 @mukesh27
8 years ago

#46105 was marked as a duplicate.

#4 @desrosj
8 years ago

  • Component Administration → General
  • Milestone Awaiting Review → Future Release
  • Owner set to desrosj
  • Status new → reviewing
  • Version 5.0.2

#5 @desrosj
7 years ago

  • Owner desrosj removed

#6 @SirLouen
17 months ago

  • Keywords needs-testing removed
  • Resolution → duplicate
  • Status reviewing → closed

Duplicate of #56457.

Basically, I've found that in this was already sorted here [54062]

@sabernhardt
17 months ago

add space in <br/> for wp-admin/network/settings.php

#7 follow-up: @sabernhardt
17 months ago

  • Resolution duplicate
  • Status closed → reopened

[54062] missed one <br/> that these patches fixed, in the network settings page, so I updated the patch.

(For an alternative approach, the label and checkbox probably could be wrapped in a div instead of using line breaks.)

@sabernhardt
17 months ago

removes slashes from <br> in Twenty Nineteen single.php template

#8 in reply to: ↑ 7 @sabernhardt
17 months ago

[54062] missed one <br/> that these patches fixed

I did not mention earlier that Twenty Nineteen also has two <br/> breaks in its single.php template. However, the theme uses <br> for the other four line breaks.

I added a patch for that too, on this ticket, but it could have its own separate commit.

Note: See TracTickets for help on using tickets.