{"id":3381,"date":"2017-01-29T11:15:33","date_gmt":"2017-01-29T10:15:33","guid":{"rendered":"https:\/\/en.florianbrinkmann.de\/?p=3381"},"modified":"2020-02-09T10:59:57","modified_gmt":"2020-02-09T09:59:57","slug":"wordpress-weekly-recap-4-improving-the-settings-api-and-more","status":"publish","type":"post","link":"https:\/\/florianbrinkmann.com\/en\/wordpress-weekly-recap-4-improving-the-settings-api-and-more-3381\/","title":{"rendered":"WordPress weekly recap #4: Improving the settings API and more"},"content":{"rendered":"<p>The core team works on improvements for the settings API. It should become easier for developers to use the API and the accessibility of the generated markup should be improved.<\/p>\n\n\n\n<!--more-->\n\n\n\n<h2 class=\"wp-block-heading\">Core<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Improving the settings API<\/h3>\n\n\n\n<p>On January 2 and 16, the core team held meetings regarding the settings API. One aspect to tackle is improving the settings page\u2019s accessibility \u2014 currently, table markup is used. The other aspect is that developers have to write an own callback function even for the most basic fields. The team wants to add support for various field types, so this will not be necessary anymore.<\/p>\n\n\n\n<p><a href=\"https:\/\/make.wordpress.org\/core\/2017\/01\/23\/improving-the-settings-api-for-accessibility-and-ease-of-use\/\">You can find more information about the meeting in the post \u00bbImproving the Settings API for accessibility and ease-of-use\u00ab by Felix Arntz<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">REST API sites endpoint for multisite<\/h3>\n\n\n\n<p>A <code class=\"lang-markup\">\/sites\/<\/code> endpoint should meet the following requirements (quoted from Jeremy Felts post):<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>The <code class=\"lang-markup\">\/sites\/<\/code> endpoint should provide a useful set of data for each site without requiring the use of <code class=\"lang-php\">switch_to_blog()<\/code>.<\/li><li>It should be possible to query <code class=\"lang-markup\">\/sites\/<\/code> for something other than ID, domain, and path.<\/li><\/ul>\n\n\n\n<p>At this moment, the <code class=\"lang-markup\">\/sites\/<\/code> endpoint is limited to the fields from the <code class=\"lang-markup\">wp_blogs<\/code> table. Things like the site\u2019s name or description are stored in an own table for each site. Because the use of <code class=\"lang-php\">switch_to_blog()<\/code> would be inefficient, a new table was proposed to store several data of the sites. After some discussion, these are possible data for the table:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><code class=\"lang-markup\">home<\/code><\/li><li><code class=\"lang-markup\">siteurl<\/code><\/li><li><code class=\"lang-markup\">blogname<\/code><\/li><li><code class=\"lang-markup\">blogdescription<\/code><\/li><li><code class=\"lang-markup\">admin_email<\/code><\/li><\/ul>\n\n\n\n<p><a href=\"https:\/\/make.wordpress.org\/core\/2017\/01\/25\/providing-a-rest-api-sites-endpoint-for-multisite\/\">More information about that can be found in Jeremy Felt\u2019s post \u00bbProviding a REST API sites endpoint for multisite\u00ab<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Misc<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>\u00bb<a href=\"https:\/\/make.wordpress.org\/core\/2017\/01\/24\/customization-meeting-notes-january-23-2017\/\">Customization Meeting Notes: January 23, 2017<\/a>\u00ab.<\/li><li>\u00bb<a href=\"https:\/\/wordpress.org\/news\/2017\/01\/wordpress-4-7-2-security-release\/\">WordPress 4.7.2 Security Release<\/a>\u00ab.<\/li><li>\u00bb<a href=\"https:\/\/make.wordpress.org\/core\/2017\/01\/26\/dev-chat-summary-january-25th-4-7-2-week-2\/\">Dev Chat Summary: January 25th (4.7.2 week 2)<\/a>\u00ab.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Design<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">What are little blocks made of?<\/h3>\n\n\n\n<p><a href=\"https:\/\/make.wordpress.org\/design\/2017\/01\/25\/what-are-little-blocks-made-of\/\">In his post \u00bbWhat Are Little Blocks Made Of?\u00ab, Joen Asmussen showed two mockups<\/a>. One shows paragraphs as blocks, the other the possibility to add other content. That and more should be discussed at the meeting on January 25.<\/p>\n\n\n\n<figure class=\"wp-block-image alignnone size-full wp-image-3382\"><noscript><img decoding=\"async\" width=\"737\" height=\"340\" src=\"https:\/\/florianbrinkmann.com\/en\/wp-content\/uploads\/sites\/11\/2017\/01\/paragraph-sections.png\" alt class=\"wp-image-3382\" srcset=\"https:\/\/florianbrinkmann.com\/en\/wp-content\/uploads\/sites\/11\/2017\/01\/paragraph-sections.png 737w, https:\/\/florianbrinkmann.com\/en\/wp-content\/uploads\/sites\/11\/2017\/01\/paragraph-sections-434x200.png 434w, https:\/\/florianbrinkmann.com\/en\/wp-content\/uploads\/sites\/11\/2017\/01\/paragraph-sections-300x138.png 300w, https:\/\/florianbrinkmann.com\/en\/wp-content\/uploads\/sites\/11\/2017\/01\/paragraph-sections-600x277.png 600w\" sizes=\"(max-width: 737px) 100vw, 737px\"><\/noscript><img decoding=\"async\" width=\"737\" height=\"340\" src=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20737%20340%22%3E%3C%2Fsvg%3E\" alt class=\"wp-image-3382 lazyload\" srcset=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20737%20340%22%3E%3C%2Fsvg%3E 737w\" sizes=\"(max-width: 737px) 100vw, 737px\" data-srcset=\"https:\/\/florianbrinkmann.com\/en\/wp-content\/uploads\/sites\/11\/2017\/01\/paragraph-sections.png 737w, https:\/\/florianbrinkmann.com\/en\/wp-content\/uploads\/sites\/11\/2017\/01\/paragraph-sections-434x200.png 434w, https:\/\/florianbrinkmann.com\/en\/wp-content\/uploads\/sites\/11\/2017\/01\/paragraph-sections-300x138.png 300w, https:\/\/florianbrinkmann.com\/en\/wp-content\/uploads\/sites\/11\/2017\/01\/paragraph-sections-600x277.png 600w\" data-src=\"https:\/\/florianbrinkmann.com\/en\/wp-content\/uploads\/sites\/11\/2017\/01\/paragraph-sections.png\"><figcaption>Mockup for paragraph blocks. (Screenshot: WordPress.org)<\/figcaption><\/figure>\n\n\n\n<p>At the meeting, it was determined to start with building prototypes as soon as possible, to answer further questions. Furthermore, it was discussed, how to add inline images inside paragraphs, <em>over-blocking<\/em>, and more. <a href=\"https:\/\/make.wordpress.org\/design\/2017\/01\/25\/what-are-little-blocks-made-of\/#comment-24949\">Ian Stewart\u2019s comment provides a summary<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Misc<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>\u00bb<a href=\"https:\/\/make.wordpress.org\/design\/2017\/01\/27\/what-are-you-using-the-customizer-for\/\">What are you using the Customizer for?<\/a>\u00ab<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">CLI<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Misc<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>\u00bb<a href=\"https:\/\/make.wordpress.org\/cli\/2017\/01\/26\/new-home-for-wp-cli-docs\/\">New home for WP-CLI docs<\/a>\u00ab.<\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>The core team works on improvements for the settings API. It should become easier for developers to use the API and the accessibility of the generated markup should be improved.<\/p>\n","protected":false},"author":1,"featured_media":3219,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"wpf_show_in_dewp_planet_feed":false,"flobn_post_versions":"","webmentions_disabled_pings":false,"webmentions_disabled":false,"lazy_load_responsive_images_disabled":false,"footnotes":""},"categories":[37],"tags":[116],"class_list":["post-3381","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress","tag-wordpress-weekly-recap"],"wp-worthy-pixel":{"ignored":false,"public":"9d3af0c042ec44d9ba82c63b35dce7f4","server":"vg01.met.vgwort.de","url":"https:\/\/vg01.met.vgwort.de\/na\/9d3af0c042ec44d9ba82c63b35dce7f4"},"wp-worthy-type":"normal","_links":{"self":[{"href":"https:\/\/florianbrinkmann.com\/en\/wp-json\/wp\/v2\/posts\/3381","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/florianbrinkmann.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/florianbrinkmann.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/florianbrinkmann.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/florianbrinkmann.com\/en\/wp-json\/wp\/v2\/comments?post=3381"}],"version-history":[{"count":5,"href":"https:\/\/florianbrinkmann.com\/en\/wp-json\/wp\/v2\/posts\/3381\/revisions"}],"predecessor-version":[{"id":5920,"href":"https:\/\/florianbrinkmann.com\/en\/wp-json\/wp\/v2\/posts\/3381\/revisions\/5920"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/florianbrinkmann.com\/en\/wp-json\/wp\/v2\/media\/3219"}],"wp:attachment":[{"href":"https:\/\/florianbrinkmann.com\/en\/wp-json\/wp\/v2\/media?parent=3381"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/florianbrinkmann.com\/en\/wp-json\/wp\/v2\/categories?post=3381"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/florianbrinkmann.com\/en\/wp-json\/wp\/v2\/tags?post=3381"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}