Welcome back the latest issue of Week in Core Core is the set of software required to run WordPress. The Core Development Team builds WordPress., covering changes [37001-37060]. Here are the highlights:
- 59 commits
- 30 contributors
- 57 tickets created
- 3 tickets reopened
- 47 tickets closed
Ticket Created for both bug reports and feature development on the bug tracker. numbers based on trac timeline for the period above.
Note: If you want to help write the next WordPress Core Weekly summary, check out the schedule over at make/docs and get in touch in the #core-weekly-update Slack Slack is a Collaborative Group Chat Platform https://slack.com/. The WordPress community has its own Slack Channel at https://make.wordpress.org/chat/. channel.
Code Changes
4.5
Customize
- Prevent preview iframe 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. from showing until fully loaded. Fixes #36276. [37060] #31195, #36276
- Add support for flex sizes in
CustomizeImageCropper
. [37042] #36255, #34851
- Require opt-in for selective refresh of widgets. [37040] #27355, #35855
Dashicons
- Fix incorrect ID in SVG version of font. [37037] #34221
- Updates
.dashicons-googleplus
(f462) and adds three new icons, .dashicons-move
(f545), .dashicons-laptop
(f547), and .dashicons-paperclip
(f546). [37036] #34221
Docs
- Mark optional method parameters as such in
Walker_Page
. Also normalizes parameter spacing following [37056]. [37057] #36300
- The page object type in use in
Walker_Page
is WP_Post
. [37056] #36300
- Improve inline documentation for properties and methods in
Walker_Page
. [37055] #36300
- The page object type in use in
Walker_PageDropdown
is WP_Post
. [37054] #36300
- Improve inline documentation for properties and methods in
Walker_PageDropdown
. [37053] #36300
- Normalize
Walker_Comment
method parameter docs spacing following [37051]. [37052] #36300
- Comment display element object types for
Walker_Comment
are WP_Comment
since 4.4.0. [37051] #36300
- Improve inline documentation syntax for
Walker_Comment
. [37050] #36300
- Standardize the class DocBlock (phpdoc, xref, inline docs) summary for
Walker_Comment
. [37049] #36300
- Improve inline documentation for properties and methods in
Walker_Comment
. [37048] #36300
- Mark optional parameters in
Walker_Category
methods as such. Also cleans up some syntax. [37047] #36300
- Improve inline documentation for property and methods in
Walker_Category
. [37046] #36300
- Improve inline documentation in property and method DocBlocks for
Walker_CategoryDropdown
. [37045] #36300
- Change the ‘HTTPS HTTPS is an acronym for Hyper Text Transfer Protocol Secure. HTTPS is the secure version of HTTP, the protocol over which data is sent between your browser and the website that you are connected to. The 'S' at the end of HTTPS stands for 'Secure'. It means all communications between your browser and the website are encrypted. This is especially helpful for protecting sensitive data like banking information.’ column header 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. to ‘Supports HTTPS’ in the markdown providers tables in the hook doc for the
oembed_providers
filter 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.. [37039] #32246
- Add Twitter timelines and moments to the table in the hook doc for the
oembed_providers
filter, introduced in [36954]. [37038] #36197, #35986
- Document default
WP_Ajax_Response::add()
arguments as a hash notation. Adds example output to the DocBlock description based on default argument values. [37032] #32246
- Improve 4.5 changelog entries introduced in [36992] for
wp_authenticate()
, and the authenticate
and wp_login_failed
hooks 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.. [37030] #9568, #35986
- Clarify documentation for the
xmlrpc_enabled
filter to better explain that its scope only extends to methods requiring authentication [37025] #21509, #36055
- Use a third-person singular verb in the DocBlock summary for
WP_REST_Response::get_curies()
, introduced in [36533]. Also adds a missing return description. [37015] #34729, #35986
- Improve parameter description syntax in the hook doc for the
rest_request_from_url
filter, introduced in [36673]. [37014] #35803, #35986
- Improve the DocBlock for
WP_REST_Request::from_url()
, introduced in [36673]. [37013] #35803, #35986
- Use a third-person singular verb in the DocBlock summary for
WP_Customize_Site_Icon_Control::content_template()
, introduced in [36698]. Also adds a missing access notation. [37012] #33755, #35986
- Add a missing version and access information to the DocBlock for the
WP_Customize_Selective_Refresh->$manager
property, introduced in [36586]. [37011] #27355, #35986
- Standardize the file header and class summarries for the file containing
WP_Customize_Selective_Refresh
, introduced in [36586]. [37010] #27355, #35986
- Standardize the file header and class summaries for the file containing
WP_Customize_Partial
, introduced in [36586]. [37009] #27355, #35986
- Clarify the use of the
get_currentuserinfo()
for backward compatibility purposes in the DocBlock description for _wp_get_current_user()
, introduced in [36651]. [37008] #19615, #35986
- Use a third-person singular verb in the DocBlock summary for
wp_authenticate_email_password()
, introduced in [36617]. [37007] #9568, #35986
- Add a couple of spaces before hook docs for filters introduced in 4.5. [37006] #35986
Editor
- Fix exiting DFW with the keyboard shortcut on Mac (Opt+Ctrl+W). [37003] #36222
Emoji
- The
everythingExceptFlag
browser support flag, introduced in [36816], wasn’t being initialised correctly. [37029] #35300
- Fix the diversity emoji check in Safari. [37028] #36266
I18N 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.
- Move translatable Codex URLs to separate strings in
wp-admin/includes/meta-boxes.php
. [37016] #35751
Media
- Fix erroneously inserting a
rel
attribute in get_image_send_to_editor()
. Reverts most of [34259] and [34260] and adds a unit test Code written to test a small piece of code or functionality within a larger application. Everything from themes to WordPress core have a series of unit tests. Also see regression.. [37035] #36084
- When generating the base URL A specific web address of a website or web page on the Internet, such as a website’s URL www.wordpress.org to be used in the
srcset
attribute, use an https scheme when the image base URL’s host matches that of the current host, and the request is being served over HTTPS. This prevents mixed content warnings caused by http 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. embedded media. [37022] #34945
Responsive Images
- The
src
of the image has to be first in the srcset
, because of a bug A bug is an error or unexpected result. Performance improvements, code optimization, and are considered enhancements, not defects. After feature freeze, only bugs are dealt with, with regressions (adverse changes from the previous version) being the highest priority. in iOS8. Update the unit tests to reflect the changes. [37034] #35030
- Skip images with a missing
$image_meta['file']
value. [37018] #35480
- Do not attempt to create
srcset
when the image meta 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. is missing or corrupted. [37002] #35480
REST 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/.
- Provide better method for generating CURIEs [37041] #34729
- Add
home_url
to API 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. index to avoid confusion with site_url
. [37031] #35647
- Remove unused variable
$api_root
from WP_Rest_Server->embed_links()
method. [37021] #35803
Themes
- Twenty Thirteen, Twenty Fourteen, Twenty Fifteen: Update screenshots to 1200 x 900 [37033] #34806
TinyMCE
- Adjust textpattern tests for the changes in [37023]. [37024] #33300
- Remove
***
and ___
text pattern and support for spaces in ---
. The only hr
text pattern is 3 or more dashes, no spaces. Remove the *
, _
, and __
text patterns for bold and italic. [37023] #33300
TinyMCE, Inline Link
- Add back the bottom box-shadow on the Apply button. Shrink
.mce-btn.mce-primary
to compensate for the bottom box-shadow
. Tighten up/reduce the margins between the buttons. [37004] #33301
- Remove bottom
box-shadow
from the Apply button so it matches the rest. Change the tooltip for the cogwheel button to Link options. [37001] #33301
Build/Test Tools
- Allow to cache the
node_modules
directory. This should speed up the installation of npm dependencies. [37058] #36291
- Bump grunt-contrib-qunit ~0.7.0 → ~1.1.0 [37020] #35104
- Bump grunt-contrib-watch ~0.6.1 → ~1.0.0 [37019] #35104
- Bump grunt-contrib-jshint ~0.11.3 → ~1.0.0 [37017] #35104
Users
- In
edit_user()
check for a blank password when adding a user. [37059] #35715
XMLRPC
- Unit tests left off [r37043] [37044] #35874
- Fix bug where draft posts couldn’t be published in the future, and would publish immediately. [37043] #35874
Props
Thanks to @aargh-a-knot, @adamsilverstein, @azaozz, @DrewAPicture, @empireoflight, @gitlost, @iamtakashi, @jaspermdegroot, @joehoyle, @joemcgill, @johnbillion, @jorbin, @karmatosed, @liljimmi, @melchoyce, @mensmaximus, @mikeschroder, @netweb, @ocean90, @overclokk, @pbearne, @pento, @rachelbaker, @raimy, @ramiy, @redsweater, @SergeyBiryukov, @wesleye, and @westonruter for their contributions!
#4-5, #week-in-core