Welcome back the latest issue of Week in CoreCore Core is the set of software required to run WordPress. The Core Development Team builds WordPress., covering changes [37720-37800]. Here are the highlights:
- 80 commits
- 33 contributors
- 26 tickets created
- 9 tickets reopened
- 37 tickets closed
Ticketticket Created for both bug reports and feature development on the bug tracker. numbers based on trac timeline for the period above. The following is a summary of commits, organized by component.
Code Changes
AccessibilityAccessibility Accessibility (commonly shortened to a11y) refers to the design of products, devices, services, or environments for people with disabilities. The concept of accessible design ensures both “direct access” (i.e. unassisted) and “indirect access” meaning compatibility with a person’s assistive technology (for example, computer screen readers). (https://en.wikipedia.org/wiki/Accessibility)
- Theme Installer, make the “Upload Theme” button… a button. [37742] #35457
- Remove the ARIA roles from the
wp.a11y.speak()live regions. [37734] #36289
Adminadmin (and super admin)
- Escape attachment name in case it contains special characters. Merges [37774] to supported branches. [37795] [37794] [37793] [37792] [37790] [37789] [37786] [37785] [37783]
- Escape attachment name in case it contains special characters. [37774]
- Allow for the consistent filtering of
auth_redirect_scheme. Merges [37651] to supported branches. [37766] [37765] [37764] [37763] [37762] [37761] [37760] [37758] [37757] #37047 - Use numeric font weights instead of keywords. [37740] #36753
Autosave
Build/Test Tools
- Output node and npm versions on travis. [37730] for 4.5. [37733] #37116
- Output node and npm versions on travis. [37730] for 4.4. [37731] #37116
- Output node and npm versions on travis. [37730]
Comments
- Wrap or unwrap the List Table comment_date as comment status changes via Ajax. Introduced in [36521]. [37743] #36742
Customize
- Make sure that preview and return URLs are URLs. Merges [37527] to supported branches. [37780] [37778] [37777] [37775] [37773] [37772] [37770] [37769] [37768]
- Separate preview and actions in the site icon control. Reverts [37456]. Merge of [37724] to the 4.5 branchbranch A directory in Subversion. WordPress uses branches to store the latest development code for each major release (3.9, 4.0, etc.). Branches are then updated with code for any minor releases of that branch. Sometimes, a major version of WordPress and its minor versions are collectively referred to as a “branch”, such as “the 4.0 branch”.. [37725] #36749
- Separate preview and actions in the site icon control. Reverts [37456] [37724] #36749
Docs
- Clarify documentation for
wp_logout_url()andwp_login_url()and corresponding hooksHooks In WordPress theme and development, hooks are functions that can be applied to an action or a Filter in WordPress. Actions are functions performed when a certain event occurs in WordPress. Filters allow you to modify certain functions. Arguments used to hook both filters and actions look the same.. [37753] #34352 - Improve the summaries and return descriptions for
get_registered_nav_menus()andget_nav_menu_locations(). [37752] #37106 - Add a missing summary and
@sinceversion to the DocBlockdocblock (phpdoc, xref, inline docs) forWP_MS_Sites_List_Table::prepare_items(). [37739] #36675, #21837, #24833, #33185
Editor
- Add white outline for contrast on darker backgrounds. Change red colour in toolbar. [37751] #36638
- after inserting a link detect if the URLURL A specific web address of a website or web page on the Internet, such as a website’s URL www.wordpress.org is broken, first run. [37741] #36638
Embeds
- Improve performance when embedding a post from the current site. Merge of [37708], [37710] and [37729] to the 4.4 branch. [37798] #36767
- Improve height calculation for slow loading images. [37745] #35657
- Remove support for Google Video. [37744] #36304
- Enforce a valid post ID when embedding a post from the current site. Merge of [37729] to the 4.5 branch. [37732] #36767
- Enforce a valid post ID when embedding a post from the current site. [37729] #36767
External Libraries
Grunt
L10NL10n Localization, or the act of translating code into one’s own language. Also see internationalization. Often written with an uppercase L so it is not confused with the capital letter i or the numeral 1. WordPress has a capable and dynamic group of polyglots who take WordPress to more than 70 different locales.
- Add unit tests for the
override_load_textdomainfilterFilter 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.. [37746] #36398
Media
- Use the correct variable for the file object. [37728] #14244
- Pass allowed file extensions to Plupload. [37727] #14244
- properly refresh the position of the Plupload shim so it moves over the Select Files button or off the screen. Fixes #37039. [37722] #37039
Multisitemultisite Used to describe a WordPress installation with a network of multiple blogs, grouped by sites. This installation type has shared users tables, and creates separate database tables for each blog (wp_posts becomes wp_0_posts). See also network, blog, site
- Use
WP_Site_Queryto powerWP_MS_Sites_List_Table. [37736] #33185, #24833, #21837, #36675 - Add search column support to
WP_Site_Query. [37735] #35791
Permalinks
Posts
- Unifies the APIs for getting a post’s modified date or time with getting a post’s date or time. [37738] #37059
Query
REST APIREST API The REST API is an acronym for the RESTful Application Program Interface (API) that uses HTTP requests to GET, PUT, POST and DELETE data. It is how the front end of an application (think “phone app” or “website”) can communicate with the data store (think “database” or “file system”)
https://developer.wordpress.org/rest-api/
- Include X-Robots-Tag: noindex headerHeader The header of your site is typically the first thing people will experience. The masthead or header art located across the top of your page is part of the look and feel of your website. It can influence a visitor’s opinion about your content and you/ your organization’s brand. It may also look different on different screen sizes. in REST API responses to prevent endpoints from being indexed by search engines. [37726] #36390
RevisionsRevisions The WordPress revisions system stores a record of each saved draft or published update. The revision system allows you to see what changes were made in each revision by dragging a slider (or using the Next/Previous buttons). The display indicates what has changed in each revision.
- Change the capabilitycapability A capability is permission to perform one or more types of task. Checking if a user has a capability is performed by the
current_user_canfunction. Each user of a WordPress site might have some permissions but not others, depending on their role. For example, users who have the Author role usually have permission to edit their own posts (the “edit_posts” capability), but not permission to edit other users’ posts (the “edit_others_posts” capability). needed to view revision diffs toedit_post. Merges [37779] to supported branches. [37799] [37797] [37796] [37791] - Change the capability needed to view revision diffs to
edit_post. [37779]
TaxonomyTaxonomy A taxonomy is a way to group things together. In WordPress, some common taxonomies are category, link, tag, or post format. https://codex.wordpress.org/Taxonomies#Default_Taxonomies.
- More specific cap check when processing categoryCategory The ‘category’ taxonomy lets you group posts / content together that share a common bond. Categories are pre-defined and broad ranging. data on post save. Ports [37691] to supported branches. [37788] [37787] [37784] [37782] [37781] [37776] [37771] [37767] #36379
Media
- Improve handling of extensionless filenames. This ensures files retain a filename after sanitization. [37756]
- Restore keyboard navigation of the media grid. [37755] #36900
Menus
- Support nested array variables in POST data when saving menus. Merge of [37748] and [37750] to the 4.5 branch. [37754] #36590, #14134
- Fix
_wp_expand_nav_menu_post_data()for PHPPHP The web scripting language in which WordPress is primarily architected. WordPress requires PHP 7.4 or higher 5.2. [37750] #36590 - Support nested array variables in POST data when saving menus. [37748] #36590, #14134
Props
Thanks to @adamsilverstein, @afercia, @akibjorklund, @azaozz, @boonebgorges, @coderste, @coffee2code, @dlh, @DrewAPicture, @ericlewis, @Fab1en, @flixos90, @helen, @imath, @iseulde, @jeremyfelt, @joemcgill, @jorbin, @kraftbj, @lukecavanagh, @m_uysl, @nbachiyski, @neverything, @ocean90, @peterwilsoncc, @polevaultweb, @Props, @rabmalin, @rachelbaker, @rockwell15, @Soean, @swissspidy, and @Viper007Bond for their contributions!