[wp-trac] [WordPress Trac] #45039: Twenty Eleven: Update theme to add Gutenberg styles and support

WordPress Trac noreply at wordpress.org
Thu Oct 18 21:07:19 UTC 2018


#45039: Twenty Eleven: Update theme to add Gutenberg styles and support
-------------------------------------+----------------------------
 Reporter:  laurelfulford            |       Owner:  laurelfulford
     Type:  task (blessed)           |      Status:  assigned
 Priority:  normal                   |   Milestone:  5.0
Component:  Bundled Theme            |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+----------------------------

Comment (by laurelfulford):

 Thanks @ianbelanger! It's funny, I was ready to post an updated patch with
 some fixes, and I completely missed the stuff you found :D

 [attachment:"45039.2.patch"] fixes the following:

 * Preemptively fixes the large quote block sizing issues reported in
 Twenty Fifteen and Sixteen
 * Removes the unnecessary side margin on the gallery
 * Updates the table spacing in the editor to be consistent with the front-
 end
 * Evens out the button padding (that was bugging me too!).
 * Changes enqueue method for blocks to swap `get_theme_file_uri()` with
 `get_template_directory_uri()`, to match other enqueues; it also switches
 the method of versioning it from numeric to date-based.

 Also, the original patch added a folder for `css` for the blocks to live
 in. But I think @nielslange's approach for Twenty Ten in #45038 makes more
 sense: it just adds the new CSS files with the existing CSS files, and
 doesn't start adding folders. So I've updated this patch to do the same,
 and moved the blocks.css and editor-blocks.css to the root of the theme.

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


More information about the wp-trac mailing list