[wp-trac] [WordPress Trac] #54962: WordPress 5.9 Archive Block

WordPress Trac noreply at wordpress.org
Thu Jan 27 21:41:31 UTC 2022


#54962: WordPress 5.9 Archive Block
--------------------------+-----------------------------
 Reporter:  cpcusteve     |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 After upgrade to 5.9, the “Archive” block has started adding a title,
 “Archives”. On examining the HTML code, there is a class missing from the
 5.9 version, see below.

 Before upgrade:
 <aside id="block-13" class="widget widget_block widget_archive"><div
 class=" wp-block-archives-dropdown"><label class="screen-reader-text" for
 ="wp-block-archives-61f2ddc72ff4f">Archives</label>

 After upgrade:
 <aside id="block-13" class="widget widget_block widget_archive"><div
 class=" wp-block-archives-dropdown wp-block-archives"><label for="wp-
 block-archives-61f2dcbd374b6">Archives</label>

 Note the missing “screen-reader-text” class declaration in “label”. Adding
 it back causes the title to disappear. In the meantime, have added the
 following to Additional CSS in the customizer to give the same result.


 /* Lose the title associated with the "archive" block */
 .wp-block-archives label {
         display:none;
 }

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


More information about the wp-trac mailing list