Hi Everyone!
It’s time for another run-down of what’s going on in WordPress coreCore Core is the set of software required to run WordPress. The Core Development Team builds WordPress.. This edition covers January 25th, 2015 [31282] through February 3rd, 2015 [31331]. If you’re interested in helping out with these updates, comment below, or pingPing The act of sending a very small amount of data to an end point. Ping is used in computer science to illicit a response from a target server to test it’s connection. Ping is also a term used by Slack users to @ someone or send them a direct message (DM). Users might say something along the lines of “Ping me when the meeting starts.” @mike on SlackSlack Slack is a Collaborative Group Chat Platform https://slack.com/. The WordPress community has its own Slack Channel at https://make.wordpress.org/chat/! There’s a dedicated #core-weekly-update channel and you can even use a super cool script to parse the logs. Without further ado:
Themes
- Allow version number in the overlay to be selected. [31330] #31205
- Remove a Chrome workaround that causes theme screenshots to look too crisp and no longer appears to be relevant. [31316] #26584
- Twenty Fifteen: move RSS icon style rule lower to prevent it from being overridden by other social icon rules. [31283] #31129
CustomizerCustomizer Tool built into WordPress core that hooks into most modern themes. You can use it to preview and modify many of your site’s appearance settings.
- Ensure that
WP_Customize_Setting::value()returns default value for setting if not dirty. - Allow
WP_Customize_Manager::post_value()to accept a second$defaultargument. - Introduce
WP_Customize_Manager::unsanitized_post_values()for accessing previously-private member variable_post_values. - Do require_once instead of require for Customizer classes.
- Add unit tests for
WP_Customize_ManagerandWP_Customize_Setting. [31329] #28580, #30988
Script Loader
- Separate the tests for IE conditional comments support in
WP_Scripts. [31317] #16024 - jQuery UIUI User interface: Add
jquery-ui-coreas dependency forjquery-ui-progressbar. [31322] #31208
Upgrade / Install
WP_Upgrader: Remove references to non-existant variables that have never existed. [31327] #29087- Remove duplicate label on installation screen. [31282] #31131
Internals
- Plugins: Remove an unused parameter on
install_plugins_upload(). [31326] #28964 - Widgets: Add
widget_nav_menu_argsfilterFilter 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. for Custom Menu widgetWidget A WordPress Widget is a small block that performs a specific function. You can add these widgets in sidebars also known as widget-ready areas on your web page. WordPress widgets were originally created to provide a simple and easy-to-use way of giving design and structure control of the WordPress theme to the user. arguments. [31325] #29463 - Menus: Don’t display “Move” text without direction if there is only one menu item. [31320] #30765
- 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. 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.: Fix an issue where the
limit_response_sizeparameter wasn’t working properly with large documents and the cURL transport. [31290] #31172 - 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.: Exclude
wp-includes/class-pop3.phpinwp_frontend()to prevent having 25 unused translations. [31315] #31179 - i18n: Tabs, not spaces for indentation. [31314]
- Switch to a
403response code in places where it is more appropriate than a500due to permissions errors. [31300] #30927 - Update readme recommendations. [31291] #31173
WP_Query
- When using WP_Query’s
fields => ids(orfields => id=>parent), make sure the returned result is always an array of integers. [31324] #31194, #27252 - When querying for a specific post, allow posts with a non-public status to be returned as long as that status is specified.
This makes it possible to, for example, retrieve a specific post using thepparameter ofWP_Query, even if the post is in the TrashTrash Trash in WordPress is like the Recycle Bin on your PC or Trash in your Macintosh computer. Users with the proper permission level (administrators and editors) have the ability to delete a post, page, and/or comments. When you delete the item, it is moved to the trash folder where it will remain for 30 days., by including thepost_status=trashparameter. [31321] #29167 - Improve support for ordering
WP_Queryresults by postmeta. WP_Meta_Queryclauses now support anameparameter. [31312] #31045
Posts
- In
get_sample_permalink(), overridefuturestatus before generating permalink. [31323] #30910 - In
get_adjacent_post(), return private post if the current user has the capacity to read it. [31302] #30911, #30287
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.
- Introduce
show_in_quick_editparameter + filter forregister_taxonomy(). Settingshow_in_quick_edittofalsewhen registering a custom taxonomy will hide the taxonomy when editing posts using Quick Edit. [31307] #26948 - Don’t use term IDs for array indexes when caching object terms. Uncached results pulled from
wp_get_object_terms()are zero-indexed (ie 0, 1, 2…). As a result,get_the_terms()was returning a strictly different array when pulling from the cache and when the cache was empty. [31287] #31086 - Ensure that
hierarchicalis respected inget_terms()when multiple taxonomies are passed. [31285] #31118 - Ensure that
pad_countsis not discarded when the first of multiple taxonomies passed toget_terms()is non-hierarchical. [31284] #31118
Media
- Rename
$instancesto$instanceinwp_audio_shortcode()andwp_video_shortcode()for consistency withgallery_shortcode()andwp_playlist_shortcode(). [31305] #31151 - Pass the current shortcodeShortcode A shortcode is a placeholder used within a WordPress post, page, or widget to insert a form or function generated by a plugin in a specific location on your site. instance ID to
post_galleryandpost_playlistfilters. [31304] [31309] #31151
Build / Test Tools
- Introduce
setExpectedDeprecated()andsetExpectedIncorrectUsage()methods toWP_UnitTestCase. [31306] #28486 - Improve organiation of
tax_queryandmeta_queryunit tests. [31286] #26999 - Add basic unit tests for
get_page_of_comment(). [31289] #11334 - Add unit tests for
show_option_allbehavior ofwp_list_categories(). [31301] #21881 - Add tests for
get_category_parents(). [31299] #30415 - Add a unit testunit 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. that expects
wp_parse_args()to treattrueandfalsein a query string as strings. [31310] #30753
Adminadmin (and super admin)
- 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 remaining instances of
accesskey. [31331] #29715 - Help/About: Don’t display the Help tab reference in Page Attributes 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 if Help tab was removed. [31303] #31164
- Add New User: Remove trailing whitespace from button labels. [31298] #31175
- Login: Reduce the size of the WordPress logo tap target on log in screen on mobile, to avoid unexpected redirect away from the form. [31318] #31185
Thanks to @afercia, @Ankit K Gupta, @azaozz, @bananastalktome, @boonebgorges, @bswatson, @cyman, @dd32, @dmchale, @DrewAPicture, @ebinnion, @ericlewis, @Funkatronic, @garyc40, @helen, @hlashbrooke, @iamtakashi, @ipm-frommen, @jdgrimes, @jeremyfelt, @johneckman, @joshlevinson, @justincwatt, @kucrut 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., @lancewillett, @meloniq, @michalzuber, @mzak, @nacin, @ninnypants for the initial patch, @ocean90, @prasoon2211, @rmarks, @SergeyBiryukov, @tomdxw, @tyxla, @valendesigns, @voldemortensen, and @westonruter for their contributions this week!