[wp-trac] [WordPress Trac] #62415: Twenty Twenty-Four: check PHPCS (escaping URLs) (was: Check PHPcs Coding standard into the twenty twenty four theme.)

WordPress Trac noreply at wordpress.org
Thu Nov 14 05:59:42 UTC 2024


#62415: Twenty Twenty-Four: check PHPCS (escaping URLs)
---------------------------+-------------------------------
 Reporter:  viralsampat    |       Owner:  (none)
     Type:  defect (bug)   |      Status:  closed
 Priority:  normal         |   Milestone:
Component:  Bundled Theme  |     Version:  6.7
 Severity:  normal         |  Resolution:  invalid
 Keywords:                 |     Focuses:  coding-standards
---------------------------+-------------------------------
Changes (by sabernhardt):

 * keywords:  dev-feedback needs-testing has-patch =>
 * status:  new => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 The footer patterns already use `esc_url()` where it belongs for their
 WordPress links, within the `href=""`. Running the `$wordpress_link`
 variable through `esc_url()` would remove the WordPress link, and using
 the function on `$about_link` would corrupt the "Money Studies" book title
 link.

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


More information about the wp-trac mailing list