[wp-trac] [WordPress Trac] #55776: sprintf missformat fatal error php 8

WordPress Trac noreply at wordpress.org
Thu May 19 09:01:08 UTC 2022


#55776: sprintf missformat fatal error php 8
----------------------------------------------+----------------------------
 Reporter:  ognjanovic                        |      Owner:  (none)
     Type:  defect (bug)                      |     Status:  new
 Priority:  normal                            |  Milestone:  Awaiting
                                              |  Review
Component:  General                           |    Version:  5.9.3
 Severity:  normal                            |   Keywords:  needs-patch
  Focuses:  administration, coding-standards  |
----------------------------------------------+----------------------------
 There is a fatal error generated in admin-header.php on line 62

 {{{

 $screen_title  = sprintf(
                                 /* translators: Editor admin screen title.
 1: "Edit item" text for the post type, 2: Post title. */
                                 __( '%1$s “%2$s”' ),
                                 $post_type_obj->labels->edit_item,
                                 $post_title
                         );

 }}}

 This part
 {{{__( '%1$s “%2$s”' )}}}

 There should be a space after %2$s in order to work in php 8.0.14 (the
 only version I tested in).

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55776>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list