[wp-trac] [WordPress Trac] #54275: need to remove some empty html element (span)
WordPress Trac
noreply at wordpress.org
Sat Oct 16 19:05:01 UTC 2021
#54275: need to remove some empty html element (span)
----------------------------------+-----------------------------
Reporter: sayedulsayem | Owner: sayedulsayem
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: Awaiting Review
Component: Help/About | Version: trunk
Severity: normal | Keywords:
Focuses: ui, coding-standards |
----------------------------------+-----------------------------
In {{{ credits.php }}} file during show core contributors there are some
empty {{{ span }}} element which is not necessary to generate.
During showing core contribution it's accessing {{{ $person_data[3] }}}
without any checking. Not every contributor have title so some cases {{{
$person_data[3] }}} return empty string. In that case, It's not necessary
to print empty string into span element.
See the screenshot below to understand it properly.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54275>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list