Week In Core, June 21 – June 28 2016

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



  • Explicitly globalize $wpdb in wp-settings.php in case WordPress isn’t loaded in global scope. [37864] #37123


  • Improve author and content of the default comment. [37888] #36702, #14268
  • Remove the assignment of an undocumented $comment_count property in WP_Comment_Query::get_comments(), which appears to be accidentally introduced in [34544]. [37873] #37187


  • 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 _handleSettingValidities on wp.customize. See #36944. See #29071. [37867] #34893, #36944, #29071


  • Fix typo in wp-includes/shortcodes.php file 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 $labels parameter description to the DocBlock for register_post_type(). [37885] #32246
  • Improve the $post_type parameter description in the DocBlock for register_post_type(). [37884] #32246
  • Add more complete documentation for the $supports argument in register_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 the pre_get_posts action. [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 $request parameter datatype in the hook doc for the posts_request filterFilter 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


External Libraries


  • Update wp.template to match parameter changes to _.template in Underscore 1.8.3. [37851] #36695

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_Locale class 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



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


  • 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_Type and use it in register_post_type() and unregister_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 capability needed to view revision diffs to edit_post. [37808][37805][37803-37802]


  • Add list-style-type to 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.


  • Wrap unusually long theme names on the Theme Details screen. [37872] #37033



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!

#4-6, #week-in-core