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 [38673-38735]. Here are the highlights:
- 62 commits
- 48 contributors
- 57 tickets created
- 9 tickets reopened
- 77 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)
- Remove
target=_blankfrom the help tab links on several adminadmin (and super admin) screens. [38725] #38145, #23432 - Remove
target=_blankfrom the Users and Widgets screens help tabs links. [38723] #38217, #23432 - Remove
target=_blankfrom the Plugins, Themes, Media, Update, and Tools screens help tabs links. [38722] #38215, #23432 - Remove
target=_blankfrom the Networknetwork (versus site, blog) screens help tabs links. [38721] #38159, #23432 - Remove
target=_blankfrom the Settings screens help tabs links. [38720] #38143, #23432 - Remove
target=_blankfrom the old custom background/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. help tabs links. [38719] #38141, #23432 - Remove
target=_blankfrom the comment/edit-comments help tabs links. [38718] #38140, #23432 - Editor, Publish metaMeta Meta is a term that refers to the inside workings of a group. For us, this is the team that works on internal WordPress sites like WordCamp Central and Make WordPress. box: remove a stray label and redundant CSSCSS Cascading Style Sheets.. [38700] #28411
Admin Bar
Build/Test
Comments
- Introduce the
wp_update_comment_datafilterFilter 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.. [38674] #36302
Customize
Editor
Embeds
- Add oEmbed support for User, List and Like Twitter timelines. [38693] #38003
- Update the oEmbed provider test suite. [38692] #32360
- Add support for embedding Facebook photos of a user/page. [38691] #34737
- Escape periods in oEmbed regex. [38684] #38187
Emoji
- Update some failing unit tests. [38724] #38113
- Add support for the upcoming Emoji 4 release. [38717] #38113
Docs
- Improve description for
term_exists()$termparam. [38716] #37224 - Correct default value for
next_textinpaginate_links(). [38701] #38212 - Correct ‘Since’ version number for Cloudup in
oembed_providersfilter description. [38675] #38188
HTTPHTTP HTTP is an acronym for Hyper Text Transfer Protocol. HTTP is the underlying protocol used by the World Wide Web and this protocol defines how messages are formatted and transmitted, and what actions Web servers and browsers should take in response to various commands.
- Document that the return value of
wp_remote_retrieve_headers()changed from a simple array to an object which implements ArrayAccess. [38730] #37722 - Update Requests to master (0048f3c) which merges [38727] to the 4.6 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”.. [38728] #38070, #37733, #37992, #37991, #37839, #38232
- Update Requests to master (0048f3c) [38727] #38070, #37733, #37992, #37991, #37839, #38232
HTTP APIAPI An API or Application Programming Interface is a software intermediary that allows programs to interact with each other and share data in limited, clearly defined ways.
- Simplify
wp_parse_url()to ensure consistent results. [38726] #36356 - Add a
$componentparameter towp_parse_url()to give it parity with PHPPHP The web scripting language in which WordPress is primarily architected. WordPress requires PHP 7.4 or higher’sparse_url()function. [38694] #36356
I18Ni18n Internationalization, or the act of writing and preparing code to be fully translatable into other languages. Also see localization. Often written with a lowercase i so it is not confused with a lowercase L or the numeral 1. Often an acquired skill.
Import
- Fix pluginPlugin A plugin is a piece of software containing a group of functions that can be added to a WordPress website. They can extend functionality or add new features to your WordPress websites. WordPress plugins are written in the PHP programming language and integrate seamlessly with WordPress. These can be free in the WordPress.org Plugin Directory https://wordpress.org/plugins/ or can be cost-based plugin from a third-party. activation link after installing an importer on 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. [38704] #37943
Media
- Improve docs for
image_send_to_editorfilter. [38734] #34823 - Better handling of JOINs when searching filenames. [38733] #22744
Meus
Meta
Multisite
- Use
get_sites()inget_blogs_of_user(). [38682] #37061 - Ensure a consistent
WP_Sitereturn fromget_site_by_path(). [38681] #37053 - Use
get_sites()in network upgrade. [38680] #37823
Options
- Add Unit tests for register_setting. [38690] #37885
- Move register_setting() from wp-admin to wp-includes. [38687] #37885
- Add missing since for register_setting argument. [38676] #37885
Plugins
- Display ‘Less Than 10’ active installs of a plugin rather than ‘0+’ active installs. [38729] #37509
- Fix odd typo introduced in [38703]. [38706] #37973
- Fix checkbox selection when searching for installed plugins. [38703] #37973
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/
Role/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_can function. 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).
- Add more complete capability and role assertions to existing user capability tests. Also reuses one more user account fixtures. [38732] #38236, #38235
- Reuse some user account fixtures in the user capability tests. [38731] #38235
- Introduce tests that assert the primitive and meta capability tests test the correct capabilitiescapability 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).. [38697] #38191 - Correct some meta capabilities that were incorrectly listed as primitive capabilities in the role and capability tests. [38696] #38191
- Add explicit cases to
map_meta_cap()for various meta capabilities that are used in core. This will allow more complete meta and primitive capability unit tests in #38191. [38695] #38191, #38201
Shortcodes
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.
- Remove the popular tagtag A directory in Subversion. WordPress uses tags to store a single snapshot of a version (3.6, 3.6.1, etc.), the common convention of tags in version control systems. (Not to be confused with post tags.) cloud from
edit-tags.php. [38735] #36964 - Introduce more fine grained capabilities for managing taxonomy terms. [38698] #35614
- Use
WP_Term_Queryinget_term_by(). [38677] #21760
Tests
- Tests: Add newly introduced theme to theme list. [38712] #37924
- Tests: Move
get_the_excerpt()tests to their own file. [38679] #36934, #38196 - Tests: Reset post-related globals after each test. [38678] #38196
Themes
Toolbar
Unit Tests
wpLists
- Add ‘urn’ to the list of URI protocols whitelisted by default. [38686] #37300
- Add test for each whitelisted URI protocol in
wp_allowed_protocols(). Move test from [25301] to the new file. [38685] #38198
Props
Thanks to @adamsilverstein, @afercia, @boonebgorges, @chrisjean, @dd32, @dlh, @DrewAPicture, @dshanske, @earnjam, @feedback, @flixos90, @for, @frankiet, @geekysoft, @gma992, @helen, @ipm-frommen, @iseulde, @jeremyfelt, @jnylen0, @joehoyle, @joelcj91, @joemcgill, @johnbillion, @johnjamesjacoby, @jorbin, @jrf, @Kenshino, @melchoyce, @mrahmadawais, @obenland, @ocean90, @ovann86, @pento, @peterwilsoncc, @Presskopp, @rachelbaker, @ramiy, @rianrietveld, @rmccue, @ryankienstra, @ryanplas, @SergeyBiryukov, @spacedmonkey, @sudar, @swissspidy, @truongwp, and @westonruter for their contributions!