This post is a summary of the latest weekly Media component meeting, which took place in the #core-media Slack Slack is a Collaborative Group Chat Platform https://slack.com/. The WordPress community has its own Slack Channel at https://make.wordpress.org/chat/. channel, on Thursday, February 15, 2018 at 1900 UTC. The purpose of these meetings are to move priority tasks forward, provide feedback on issues of interest, and review media focused tickets on Trac An open source project by Edgewall Software that serves as a bug tracker and project management tool for WordPress..
@mikeschroder @antpb @blobfolio @flixos90 @jdub233 @sergey @desrosj @azaozz
Transcript: Read on Slack
Gutenberg The Gutenberg project is the new Editor Interface for WordPress. The editor improves the process and experience of creating new content, making writing rich content much simpler. It uses ‘blocks’ to add richness rather than shortcodes, custom HTML etc. https://wordpress.org/gutenberg/
- The best way to follow along with media related Gutenberg items is the media label in GitHub.
- Repository milestones have been re-arranged to make it easier to see what is going on.
The next part of the meeting was spent on tickets in the next major milestone (5.0).
#33979 – Add filter Filters are one of the two types of Hooks https://codex.wordpress.org/Plugin_API/Hooks. They provide a way for functions to modify data of other functions. They are the counterpart to Actions. Unlike Actions, filters are meant to work in an isolated manner, and should never have side effects such as affecting global variables and output. for 'post_gallery_item'
#38228 – Add filter to default gallery shortcode A shortcode is a placeholder used within a WordPress post, page, or widget to insert a form or function generated by a plugin in a specific location on your site. output
Discussion around how granular gallery filters should be. With #3379 we gain a filter to add styles individually per item in the Gallery. It was discussed that we will need tickets to add more granular filters going forward for captions and other image attributes. From @desrosj : "Currently the shortcode builds the HTML HyperText Markup Language. The semantic scripting language primarily used for outputting content in web browsers. string as it goes. I think if the attributes were built in an associative array, that could just be filtered, and then the element built at the end. That could allow additional attributes to be added, widths to be changed for specific images making it easier to do different grid layouts." This sparked the question above around how Gutenberg will handle backwards compatibility with filtered attributes.
The following tickets need a combination of code review and approval:
- #33979 – Add filter for 'post_gallery_item'
Seems good to go as a first step towards more granular Gallery filters if it won’t make it more difficult for Gutenberg to provide backcompat.
The next #core-media meeting is set for Thursday, February 22, 2018 at 1900 UTC. Hope to see you there!