[wp-trac] [WordPress Trac] #63694: HTML Processing Improvements in 6.9

WordPress Trac noreply at wordpress.org
Wed Sep 10 03:15:55 UTC 2025


#63694: HTML Processing Improvements in 6.9
--------------------------------------+---------------------
 Reporter:  dmsnell                   |       Owner:  nerrad
     Type:  enhancement               |      Status:  closed
 Priority:  normal                    |   Milestone:  6.9
Component:  HTML API                  |     Version:  trunk
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------
Changes (by SergeyBiryukov):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"60726" 60726]:
 {{{
 #!CommitTicketReference repository="" revision="60726"
 Coding Standards: Simplify a conditional in `get_url_in_content()`.

 As there's an `is_string()` check already, `! empty( $href )` can be
 simplified to a string comparison, as the other variable types that are
 checked in `empty()` won't appear.

 `empty()` also returns `false` for the string `"0"` which would however be
 a valid (relative) URL and thus should be detectable by the function.

 Follow-up to [60665].

 Props TobiasBg.
 Fixes #63694.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63694#comment:24>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list