Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #58502


Ignore:
Timestamp:
06/09/2023 03:18:02 PM (10 months ago)
Author:
sabernhardt
Comment:

This is apparently a translation problem in Bengali and a few other languages. The sprintf() function expects placeholders such as %s instead of <code>%</code> for the "If you pick an option other than Plain" help text (since changeset 45926).

The full error I received in PHP 8.1 is: Fatal error: Uncaught ValueError: Unknown format specifier "<" in /.../wp-admin/options-permalink.php:38 Stack trace: #0 /.../wp-admin/options-permalink.php(38): sprintf('\xE0\xA6\x86\xE0\xA6\xAA\xE0\xA6\xA8\xE0\xA6\xBF \xE0\xA6...', '<code>%</code>') #1 {main} thrown in /.../wp-admin/options-permalink.php on line 38

Likewise, the "When you assign multiple categories or tags to a post" string needs both the %1$s and %2$s placeholders, though I only had a warning about that in PHP 7.4: Warning: sprintf(): Too few arguments in \wp-admin\options-permalink.php on line 44

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #58502 – Description

    initial v1  
    11I'm using WordPress 6.2.2 on PHP 8.1.x
    22
    3 **Fatal error: Uncaught ValueError: Unknown format specifier "<" in /wp-admin/options-permalink.php:38 Stack trace: #0 /wp-admin/options-permalink.php(38): sprintf() #1 {main} thrown in /wp-admin/options-permalink.php on line 38**
     3`Fatal error: Uncaught ValueError: Unknown format specifier "<" in /wp-admin/options-permalink.php:38 Stack trace: #0 /wp-admin/options-permalink.php(38): sprintf() #1 {main} thrown in /wp-admin/options-permalink.php on line 38`
    44
    55Here is the WordPress Health Status:
    66
    7 `
     7{{{
    88### wp-core ###
    99
     
    132132themes: writable
    133133mu-plugins: writable
    134 
    135 `
     134}}}