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 [37551-37600]. Here are the highlights:
- 50 commits
- 33 contributors
- 56 tickets created
- 13 tickets reopened
- 86 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
Bootstrap
Build/Test Tools
- Add tests for
no_found_rowsbehavior ofWP_Query. [37600] #29952 - Change some ‘group’ annotations to ‘ticket’. [37595]
- Upgrade the HHVM job to use Ubuntu Trusty, and a more recent version of HHVM. [37555] #36930
Comments
- Display approved comments on the Edit Post screen to users without the
edit_commentcapabilitycapability A capability is permission to perform one or more types of task. Checking if a user has a capability is performed by thecurrent_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).. [37584] #24648
Customize
Database
-
Normalize index definitions in dbDelta(). [37583] #20263, #34869, #34871, #34873, #34959
- Add support for
SPATIALkeys todbDelta(). [37574] #36948
Date/Time
Docs
- Ensure hook and duplicate hook docs directly precede all instances of the
image_memory_limitfilterFilter 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.. [37592] #36968 - Correct a duplicate filter comment for the
image_memory_limithook to point to the correct file. [37591] #36968 - Improve documentation for
wp_generate_tag_cloud()default arguments by formatting them into in a hash-notation. [37587] #32246 - Improve formatting in the DocBlockdocblock (phpdoc, xref, inline docs) for
sanitize_bookmark_field(). [37586] #32246 - Standardizes and improves DocBlock summaries for the
__get(),__set(),__isset(), and__unset()magic methods inwpdb. [37585] #32246 - Remove unnecessary backtick-escaping around two function references in the DocBlock for
get_object_term_cache(). [37578] #36814 - Link up a reference to the
get_terms_argsfilter in the hook doc forget_terms_defaults. [37577] #35381, #36921 - Reorder argument descriptions in the DocBlock for
wp_list_categories()to match the default arguments list and improve reading at a glance. [37571] #36693 - Add missing documentation for the
styleargument in the DocBlock forwp_list_categories(). [37569] #36693 - Add missing
@accesstags to methods inWP_oEmbed_Controller. [37568] #36297 - Update the return description for
get_preview_post_link()to note that it can also return null. [37564] #35915 - Correct DocBlock descriptions for the
$before,$after,$link_before, and$link_afterarguments forwp_nav_menu(). [37561] #32246 - Standardize DocBlock summaries for 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. that serve to “print” something to use third-person singular verbs. [37560] #36913
- Update hook docs for the
upgrader_package_optionsfilter andupgrader_process_completeaction to reflect expected values in the core, language pack, theme, and 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. contexts. [37558] #36875
Editor
General
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.
- Only use the filename component of URLs to form part of the temporary filename. Previously we were passing the entire URLURL A specific web address of a website or web page on the Internet, such as a website’s URL www.wordpress.org to
wp_tempnam()(incorrectly) which caused the query string to be used as part of the temporary filename. We now only use the file component of a url such ashttps://example.com/filename.zip?arg1=1&arg2=2....&arg100=100to prevent a long filename. [37598] #34938
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.
- Improve grammar for WordPress News help text. [37553] #35681
- Update list of continents and cities for the timezone selection. [37554] #36828
- Add translators comments to wp-activate.php. [37552] #35734
Media
Plugins
- Fix order of arguments for the
strpos()function added in [37562]. [37580] #36706 - In
get_plugin_data()use the plugin slug for the text domain when no text domain is defined in the 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.. [37562] #36706
Query
- In
WP_Meta_Query, don’t castmeta_valuetoCHAR. [37594] #36625 - Allow term 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. lazy-loading to be selectively disabled in
WP_Query. [37589] #36953 - In
get_bookmarks(), don’t cache if ‘orderby=rand’. [37565] #18356 - Add tests for
get_bookmarks()cache. [37563] #18356
Setup
- Sanity check for invalidinvalid A resolution on the bug tracker (and generally common in software development, sometimes also notabug) that indicates the ticket is not a bug, is a support request, or is generally invalid. table prefixes. [37581] #36422
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.
- Ensure that
get_terms()can accept querystring-style arguments. [37599] #35381 - Don’t clear object relationship caches on term update. [37593] #36814, #36251
- Pass the proper values to
get_termsaction. [37576] #35381, #36951 - Introduce
WP_Term_Queryand use inget_terms(). [37572] #35381 - Store only term IDs in object term relationships caches. [37573] #36814
- Fix termmeta pre-fetching in
wp_get_object_terms(). [37567] #36932
Themes
- Twenty Elevent Ephemera 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. fix for caching in 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. preview. [37590] #36429
Tiny MCE
- Check if
wp.mce.viewsexists before loading the wpview plugin. [37597] #36977 - Fix inline toolbar positioning [37559] #36876
Upgrade/Install
Thanks to @azaozz, @birgire, @bobbingwide, @boonebgorges, @c3mdigital, @chris_dev, @danielbachhuber, @DBrumbaugh10Up, @dd32, @dlh, @DrewAPicture, @ericlewis, @flixos90, @iseulde, @jfarthing84, @jorbin, @karmatosed, @kurtpayne, @lukecavanagh, @MikeHansenMe, @netweb, @nextendweb, @ocean90, @pbearne, @pento, @peterwilsoncc, @prettyboymp, @rachelbaker, @ramiy, @sebastianpisula, @swissspidy, @tloureiro, and @wp_smith for their contributions!