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 [38111-38160]. Here are the highlights:
- 49 commits
- 35 contributors
- 73 tickets created
- 4 tickets reopened
- 67 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
Administration
- System fonts: Adjust the smaller tabs so they appear as tabs. [38153] #36753
- System fonts: Don’t quote single-word font names, per our coding standards. [38152] #36753
Build/Test Tools
Comments
- Introduce the
cache_domainargument forWP_Comment_Queryto allow caching to a unique set of cache buckets. [38117] #37419 - Tests: Include the
check_commentfunction tests in the comment group. Adds@group commentnotation to theTests_Comment_CheckCommentclass. Introduced in [32519]. [38114] #37356
Cron 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.
- Docs: In
wp_schedule_single_event(), add a note about scheduling an event to occur within 10 minutes of another event with the same action hook. [38148] #37455
Database
- Replace incorrect use of
E_USER_NOTICEinwpdb::_real_escape()with the version number where the message was added. [38133] #36403
Editor
- Inline link: Remove proxying through WordPress to test if an URLURL A specific web address of a website or web page on the Internet, such as a website’s URL www.wordpress.org exists. Fix and enhance the regex that tests if the URL is well formed. [38159] #36638
- Improve styling of “Add Media” button on mobile and make it more consistent with media buttons added by plugins. [38132] #36999
- Link check: Use
wp.a11y.speak()to announce bad URLs. Do not add a title to the link toolbar. Better error message. [38126] #36638
Feeds
Filesystem API
- Filesystem API: Change the default value for the
$contextparameter ofget_filesystem_method()andrequest_filesystem_credentials()to an empty string. [38138] #37412
General
- Docs: Fix typo in hook description for
customize_save_validation_before. [38140] #37318 - Docs: Fix formatting, tense, verb conjugation, and other syntax for wp-includes/* elements introduced or changed in 4.6. [38121] [38125] #37318
- Docs: Add missing inline documentation in
WP_HTTP_Requests_Response. [38120] #37318, #33055
Media
- 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.: Add a translator comment for two MediaElement.js strings added in [38089]. [38150] #37453, #37394
- Docs: Fix minor formatting issue for a comment added in [38113]. [38139] #32171
- Ensure empty
altattributes are set to blank strings. [38116] #36735 - Remove global import for
$content_widthin_wp_post_thumbnail_html().$content_widthis unused since [35023]. [38136] #28512 - Clean up prior image edits if
IMAGE_EDIT_OVERWRITEis true. [38113] #32171
Menus
- Docs: Update the description of the
$boxargument ofwp_nav_menu_item_taxonomy_meta_box()for consistency with [38129]. Missed in [38130]. [38142] #37211 - Docs: In 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 functions, clarify that “Meta box ID” refers to the
idattribute of the meta box and not a numeric ID. [38131] #37211 - Docs: Correct and expand the docs for the
$taxonomyargument ofwp_nav_menu_item_taxonomy_meta_box(). [38128] #37211 - Docs: Correct and expand the docs for the
$post_typeargument ofwp_nav_menu_item_post_type_meta_box(). [38127] #37211 - In
wp_nav_menu_item_taxonomy_meta_box(): Rename the$taxonomyparameter to$boxfor clarity and consistency with other meta box functions. [38130] #37211 - In
wp_nav_menu_item_post_type_meta_box(): Rename the$post_typeparameter to$boxfor clarity and consistency with other meta box functions. [38129] #37211
Permalinks
Plugins
- Use
history.pushState()to customize the URL during searches.history.pushState()requires an event handler forpopstatewhich doesn’t exist (yet). [38154] #37233 - Add a missing space between classes on “ element for custom columns of the Plugins list table. [38149] #37460
- List Table: Improve
WP_Plugins_List_Table::search_box()which was added in [38033]. [38146] #37230 - Improve Ajax search of new plugins. [38119] #37233
- 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): Ensure only text is sent to aria-live messages. [38115] #37382
- Make search field placeholder translatable. [38141] #37230
Posts, Post Types
- Remove a redundant
function_exists( 'mb_strlen' )check inget_sample_permalink_html().mb_strlen()is always available since [32114]. [38147] #30633 - Unit Tests: Add a
@ticketreference fortest_get_page_uri_without_argument(). [38144] #26284 - Unit Tests: Move
get_page_uri()tests topost/getPageUri.php, added in [37345]. [38143] #26284
Post Thumbnails
- Remove an unused nonce in
_wp_post_thumbnail_html(). [38137] #12922 - Only update featured images when saving a post. [38118] #12922
Script Loader
Themes
- Docs: Fix typo in
wp_title()description. [38135] #37442 - Docs: Change type of
WP_Upgrader_Skin::$resulttostring|bool|WP_Error. [38134] #32246
TinyMCE
- Fix the calculation for the inline toolbar vertical position. [38160] #37481
wpView:- Add the
wpview-wrapclass and pass third param to thegetNodes()callback for back-compat. - Attach the mutation observer that resizes a view iframeiframe iFrame is an acronym for an inline frame. An iFrame is used inside a webpage to load another HTML document and render it. This HTML document may also contain JavaScript and/or CSS which is loaded at the time when iframe tag is parsed by the user’s browser. inside the iframe to minimize memory use/leaks.
- Remove the
wp-mce-view-unbindevent. It has never been particularly reliable and now it doesn’t fire when the user deletes a view by typing or pasting over it. - Restore changing of a view iframe body classes when the editor body classes change. [38158] #36434
- TinyMCE, wpView: bail early when the iframe node is not attached to the DOM. We can’t load any HTMLHTML HyperText Markup Language. The semantic scripting language primarily used for outputting content in web browsers. in it as here is no
iframe.contentWindowin these cases. [38157] #36434 - Fix selecting an image on touch in iOSiOS The operating system used on iPhones and iPads. Safari for TinyMCE 4.4.1. [38156] #37427
- Upgrade to 4.4.1, changelog: https://www.tinymce.com/docs/changelog/#version441-july262016. [38155] #37427, #37476
Upgrade/Install
- Prevent an endless self-calling loopLoop The Loop is PHP code used by WordPress to display posts. Using The Loop, WordPress processes each post to be displayed on the current page, and formats it according to how it matches specified criteria within The Loop tags. Any HTML or PHP code in the Loop will be processed on each post. https://codex.wordpress.org/The_Loop in
wp_tempnam(). [38151] #33999
Thanks to @adamsilverstein, @afercia, @afineman, @andizer, @azaozz, @bradt, @Chouby, @chriscct7, @crstauf, @DrewAPicture, @flixos90, @FolioVision, @gma992, @helen, @ideag, @inderpreet99, @iseulde, @ixkaito, @joemcgill, @jorbin, @medariox, @mehulkaklotar for initial patchpatch A special text file that describes changes to code, by identifying the files and lines which are added, removed, and altered. It may also be referred to as a diff. A patch can be applied to a codebase for testing., @mikeschroder, @netweb, @ocean9, @ocean90, @pento, @peterwilsoncc, @rachelbaker, @rahulsprajapati, @rahulsprajapati for initial patch, @ramiy, @SergeyBiryukov, @stevenkword, and @swissspidy for their contributions!