[wp-trac] [WordPress Trac] #57688: File Block: Missing backward compatible styles for classic themes

WordPress Trac noreply at wordpress.org
Mon Feb 13 19:58:55 UTC 2023


#57688: File Block: Missing backward compatible styles for classic themes
-------------------------------------------------+-------------------------
 Reporter:  wildworks                            |       Owner:
                                                 |  hellofromTonya
     Type:  defect (bug)                         |      Status:  reviewing
 Priority:  normal                               |   Milestone:  6.2
Component:  General                              |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch gutenberg-merge has-       |     Focuses:
  testing-info                                   |
-------------------------------------------------+-------------------------

Comment (by hellofromTonya):

 == Testing Instruction

 Classic themes such as Twenty Twenty One and Twenty Twenty cannot be
 reproduced because they have styles for file blocks. So a plan theme is
 needed to test.

 * Step 1: Create a directory `wp-content/themes/empty-classic`.

 * Step 2: Navigate into that theme directory.

 * Step 3: Add a new file named `style.css`.

 * Step 4: Open and then copy/paste the following code into the `style.css`
 file:

 {{{#!css
 /*
 Theme Name: Empty Classic
 */
 }}}

 * Step 5: Create a new file named `index.php`.

 * Step 6: Open and then copy/paste the following code into the `index.php`
 file:

 {{{#!php
 <?php
 wp_head();
 the_post();
 the_content();
 wp_footer();
 }}}

 * Step 7: Log into the admin area.

 * Step 8: Create a new post in Posts > Add New.

 * Step 9: Add a file block to that new post.

 * Step 10: Select a file from your hard drive (e.g. `test.txt` file).

 * Step 11: Publish the post.

 * Step 12: View the post in the front-end.

 == Expected results

 * Before the patch, the download button is unstyled.
 * After the patch, the download button is styled to match the new CSS
 added by the patch (i.e. text color and background color).

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


More information about the wp-trac mailing list