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 [37801-37902]. Here are the highlights:
- 102 commits
- 41 contributors
- 86 tickets created
- 10 tickets reopened
- 84 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
- Escape URLURL A specific web address of a website or web page on the Internet, such as a website’s URL www.wordpress.org-encoded permalinks [37823], [37821-37820], [37817], [37815], [37812-37811], [37807-37806]
Bootstrap
- Explicitly globalize
$wpdbinwp-settings.phpin case WordPress isn’t loaded in global scope. [37864] #37123
Comments
- Improve author and content of the default comment. [37888] #36702, #14268
- Remove the assignment of an undocumented
$comment_countproperty inWP_Comment_Query::get_comments(), which appears to be accidentally introduced in [34544]. [37873] #37187
Customize
- Improve flow from menu locations to editing a menu. [37901] #36795
- Link “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. areas” to widgets panel in menu locations section description. [37900] #36796
- Always define functions
reflowPaneContents,findControlsForSettings, and_handleSettingValiditiesonwp.customize. See #36944. See #29071. [37867] #34893, #36944, #29071
Docs
- Fix typo in
wp-includes/shortcodes.phpfile description. [37865] #37175 - Add two simple usage examples to the DocBlockdocblock (phpdoc, xref, inline docs) for
wp_redirect(). [37863] #32246 - Improve the syntax and tensing within the DocBlock for
is_home(). [37862] #32246 - Improve formatting and syntax of the defaullt label docs in the DocBlock for
get_post_type_labels(). [37886] #32246 - Add a more complete
$labelsparameter description to the DocBlock forregister_post_type(). [37885] #32246 - Improve the
$post_typeparameter description in the DocBlock forregister_post_type(). [37884] #32246 - Add more complete documentation for the
$supportsargument inregister_post_type(). [37883] #32246 - Improve the usefulness, accuracy, and syntax of the
register_post_type()DocBlock summary and description. [37882] #32246 - Add missing variable reference for
wp_edit_form_attachment_display. [37880] # - Further improve the note of caution within the DocBlock description for
query_posts(). [37878] #32246 - Add a note to the DocBlock for
query_posts()to caution against general usage, including a pointer to thepre_get_postsaction. [37877] #32246 - Make the DocBlock summary for
get_option()more explicit and convert to using a third-person singular verb. [37876] #32246 - Improve the formatting and usefulness of information in the DocBlock for
sanitize_text_field(). [37852] #32246 - Add some missing changelog entries to the DocBlock for
add_theme_support(). [37849] #32246 - Correct the
$requestparameter datatype in the hook doc for theposts_requestfilterFilter 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.. [37848] #37142
Embeds
External Libraries
- Update MediaElement.js to 2.21.2. [37887] #36759
- Update Masonry to 3.3.2 and imagesLoaded to 3.2.0. [37891] #32802
General
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.
- Make “That’s all, stop editing! Happy blogging.” translatable. [37902] #36945
- Move the
WP_Localeclass to its own file. [37889] #26511, #37209 - Remove HTMLHTML HyperText Markup Language. The semantic scripting language primarily used for outputting content in web browsers. tags from translatable string in
wp-admin/maint/repair.php. [37858] #37147 - Enable unloading of text domains that have been loaded just in time. [37855] #37113, #34114
- Add support for the Catalan flown dot in
remove_accents(). [37853] #37086
Media
- Add action to display attachments on the edit screen. [37879] #36502
- Prompt when deleting multiple items from the Media Library [37859] #28235
- Improve handling of extensionless filenames. [37825-37824], [37822], [37819-37818], [37816], [37814], [37810-37809] #37111
- Restore keyboard navigation of the media grid. [37804] #36900
- Fix rendering of incorrect toolbar in the Edit view. [37813] #36861
Menus
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
- Add a
ms_sites_list_table_query_argsfilter toWP_MS_Sites_List_Table. [37899] #26580 - Replace
wp_get_network()internals withget_network(). [37896] #32504 - Introduce
get_networks(). [37895] #32504 - Introduce
WP_Network_Query. [37894] #32504 - Introduce
get_network(). [37893] #32504 - Remove unused
site_countproperty fromWP_Site_Query. [37875] #35791 - Clear incomplete objects from cache in
get_blog_details()when found. [37874] #36717 - Set
WP_Networkblog_idproperty default to string as expected. [37871] #36717 - Change
WP_Networkidproperty to an integer. [37870] #37050 - Cache
found_sitesandmax_num_pagesinWP_Site_Query. [37868] #35791 - Move call of
get_blog_details()insidems_site_check(). [37850] #37118
Plugins
- Allow action and filter 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. to be deprecated. [37861] #10441
Posts, Post Types
- Introduce
WP_Post_Typeand use it inregister_post_type()andunregister_post_type(). [37890] #36217 - Fix back-compat for filters in get the modified time and date functions after [37738]. [37866] #37059
- Add hooks for post sticky status changes. [37857] #35600
- Add a filter to disable the categories dropdown. [37856] #36152
RevisionsRevisions The WordPress revisions system stores a record of each saved draft or published update. The revision system allows you to see what changes were made in each revision by dragging a slider (or using the Next/Previous buttons). The display indicates what has changed in each revision.
- Remove unused post 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. data during database upgrade. [37854] #36526
- Change the 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_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). needed to view revision diffs toedit_post. [37808], [37805], [37803-37802]
Security
- Add
list-style-typeto the list of allowed CSSCSS Cascading Style Sheets. attributes. [37898] #35877 - Adjust the list of safecss attributes for readability. [37897] #35877
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.
Themes
Thanks to @adamsilverstein, @anilbasnet, @azaozz, @boonebgorges, @celloexpressions, @coffee2code, @danielbachhuber, @davidmosterd, @DrewAPicture, @Ego, @flixos90, @georgestephanis, @grapplerulrich, @Ipstenu, @ixkaito, @jeremyfelt, @jnylen0, @joemcgill, @jorbin, @julesaus, @kovshenin, @littlerchicken, @nacin, @nbachiyski, @Ninos, @ocean90, @ojrask, @pento, @peterwilsoncc, @rachelbaker, @ruudjoyo, @SergeyBiryukov, @sirjonathan, @solarissmoke, @southp, @spacedmonkey, @swissspidy, @westonruter, @xavivars, and @xavortm for their contributions!