[wp-trac] [WordPress Trac] #59704: Bundled themes: harden fonts URL code for PHP 8.1

WordPress Trac noreply at wordpress.org
Sat Feb 10 18:28:13 UTC 2024


#59704: Bundled themes: harden fonts URL code for PHP 8.1
-------------------------------------------------+-------------------------
 Reporter:  jordesign                            |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  6.5
Component:  Bundled Theme                        |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-testing has-         |     Focuses:
  testing-info                                   |
-------------------------------------------------+-------------------------
Changes (by sabernhardt):

 * keywords:  has-patch needs-testing needs-testing-info => has-patch needs-
     testing has-testing-info


Comment:

 Testing:

 1. Check the PHP version to make sure it is at least 8.1, and verify that
 WP_DEBUG is true.
 2. Install the current versions of Twenty Thirteen, Twenty Fourteen,
 Twenty Fifteen, Twenty Sixteen and Twenty Seventeen.
 3. Add the child themes from the zipped file.
 4. Activate one of the child themes. This should show an error about the
 `str_replace` function and possibly another about headers already sent.
 5. Activate Twenty Seventeen or another parent theme (one that does not
 cause an error), and refresh the Themes page if it shows a 'headers
 already sent' error.
 6. Continue activating the other child themes to confirm the errors, and
 activate an errorless theme in between each.
 7. Activate Twenty Seventeen.
 8. Apply the patch (PR 5995).
 9. Activate each of the child themes to confirm that they do not show
 errors anymore.
 10. If you visit the site or open the post editor, the font should be a
 system font.

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


More information about the wp-trac mailing list