WordPress weekly recap #4: Improving the settings API and more

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.

Core

Improving the settings API

On January 2 and 16, the core team held meetings regarding the settings API. One aspect to tackle is improving the settings page’s accessibility — 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.

You can find more information about the meeting in the post »Improving the Settings API for accessibility and ease-of-use« by Felix Arntz.

REST API sites endpoint for multisite

A /sites/ endpoint should meet the following requirements (quoted from Jeremy Felts post):

  • The /sites/ endpoint should provide a useful set of data for each site without requiring the use of switch_to_blog().
  • It should be possible to query /sites/ for something other than ID, domain, and path.

At this moment, the /sites/ endpoint is limited to the fields from the wp_blogs table. Things like the site’s name or description are stored in an own table for each site. Because the use of switch_to_blog() 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:

  • home
  • siteurl
  • blogname
  • blogdescription
  • admin_email

More information about that can be found in Jeremy Felt’s post »Providing a REST API sites endpoint for multisite«.

Misc

Design

What are little blocks made of?

In his post »What Are Little Blocks Made Of?«, Joen Asmussen showed two mockups. 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.

Mockup for paragraph blocks. (Screenshot: WordPress.org)

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, over-blocking, and more. Ian Stewart’s comment provides a summary.

Misc

CLI

Misc

Related posts

Leave a Comment

Your email address will not be published. Required fields are marked *