Week in Core, Apr 12 – Apr 19 2016

Welcome back the latest issue of Week in Core, covering changes [37191-37253]. Here are the highlights:

Ticket numbers based on trac timeline for the period above.

Code Changes

Administration

  • Fix default avatar handling in Settings -> Discussion. [37227] #34744

Bootstrap/Load

  • Allow for ABSPATH to be defined outside of wp-load.php, e.g. in a script loaded via auto_prepend_file. [37207] #26592

Build/Test Tools

  • Add test for multiple site path segments in bootstrap This [37241] #36566
  • Add missing params to doc blocks. Simplifies parameter names in test_get_network_by_path() [37239] #36566
  • Use a data provider to test multisite’s bootstrap. Also helps to get things in order before the introduction of a more testable multisite bootstrap function in #34941. [37238] #34941, #36566
  • Use a data provider in get_site_by_path() tests [37237] #36566, #34941
  • Use a data provider to test get_network_by_path() [37236] #36566, #34941
  • Share test fixtures in multisite bootstrap tests [37234] #36566, #34941
  • Improve get_blog_count() tests [37233] #36566
  • Improvements to /post/query test class. [37224] #
  • Run image tasks only if there are changes [37211] #36528
  • Don’t run the build task twice in grunt prerelease (it already runs via the precommit:js task). [37206] #36489
  • Run network option tests as single and multisite [37222] #36552
  • Update grunt-contrib-uglify from ~0.10.0 to ~1.0.1 [37212] #36520

Comments

  • Add parameters to edit_comment_link() to allow specifying a Comment and link class. [37215] #36538
  • Allow for default comment form action, /wp-comments-post.php, to be changed via the comment_form_defaults filter. [37208] #26841

Customize

Docs

  • Properly notate optional parameters as such in a variety of DocBlocks in wp-includes/link-template.php. [37252] #30406
  • Fix typo in a comment in wp-admin/js/postbox.js. [37195] #36349
  • Fix typo in get_image_send_to_editor() description. [37194] #36349
  • Fix typo in wp_update_theme() description. [37193] #36349
  • Clarify that is_tax() and WP_Query::is_tax() return false for built-in taxonomies (category and tag archives). [37235] #36331
  • Correct description for override_load_textdomain and override_unload_textdomain filters. [37214] #36537
  • Use third-person singular verbs in DocBlock and hook doc summaries in wp-includes/link-template.php. [37213] #30406
  • Fix typo in wp_cache_switch_to_blog() and WP_Object_Cache::switch_to_blog() description. [37216] #36548
  • Reference the correct variable in WP_Ajax_UnitTestCase::_handleAjax() documentation. [37199] #36522
  • Clarify possible types passed to the themes_api_result filter. [37209] #32246

Export

I18N

  • Remove tags from translatable string in wp-admin/options-writing.php. [37198] #36249
  • Add translator comment for a string with a placeholder added in [36806]. [37201] #36493

Login and Registration

  • Add login_header action that fires in the login page header after the body tag is opened and complements login_footer. [37243] #22139
  • Add noindexing to the default wp_die() handler to avoid unnecessary crawl errors in web search engines. [37210] #34401

Media

  • Resolve fatal error on resize with ImageMagick < 6.4.6 Merge of [37192] to the 4.5 branch. Fixes #36501. [37245] #36501
  • Change the close “X” in the Media “Attach to existing content” modal in a button. [37231] #36554
  • Resolve fatal error on resize with ImageMagick < 6.4.6 Fixes #36501. [37192] #36501
  • Make $current_site and $current_blog explicitly global. [37226] #34941
  • Fire a clean_site_cache action when a site’s cache is cleared [37204] #36203
  • Remove theme from network allowed themes when deleted [37203] #34182
  • Introduce WP_Theme methods to network enable/disable themes. [37202] #30594
  • Relocate revoke_super_admin() and grant_super_admin() [37200] #21788
  • Do not set network options to autoload in single site [37223] #22846

Plugins

  • Show the upload form in place rather than sending users to the devoted upload plugin page. [37221] #35429
  • Properly wrap long tab names to a second line in plugin details modal. [37218] #33221

Posts, Post Types

  • Pass thumbnail ID to the admin_post_thumbnail_html filter. [37196] #36443
  • In sanitize_post_field(), only run ‘attribute’ or ‘js’ escaping when necessary. [37220] #34900

Query

Themes

  • Adding the singular class per default to the list of body classes is breaking the layout of Twenty Eleven and other themes. Merge of [37249] to the 4.5 branch. [37249-37250] #36510
  • After [37217], add other embed templates to file descriptions. [37232] #34561, #34561
  • Account for longer strings in Theme Details bar on Themes screen. [37219] #27939
  • Add embed.php to file descriptions. [37217] #36551
  • Fix single theme modal on collapsed menu. [37205] #36504

TinyMCE

XML-RPC

  • Use a strict comparison to ensure that a non-numerically-indexed array is not incorrectly matched as a numeric array. [37244] #36586

 

Thanks to @afercia, @azaozz, @barry, @bobbingwide, @boonebgorges, @borkweb, @celloexpressions, @Cheffheid, @Chouby, @christophherr, @cliffseal, @dd32, @dimadin, @DrewAPicture, @ericlewis, @flixos90, @Frozzare, @gblsm, @hardeepasrani, @henrywright, @iamfriendly, @igmoweb, @Ipstenu, @iseulde, @jeremyfelt, @joedolson, @johnbillion, @johnjamesjacoby, @jorbin, @meitar, @michaelarestad, @mikeschroder, @netweb, @obenland, @ocean90, @postpostmodern, @rachelbaker, @ramiy, @rodrigosprimo, @SergeyBiryukov, @shahpranaf, @spacedmonkey, @swissspidy, @TacoVerdo, @tfrommen, @theMikeD, @thomaswm, @voldemortensen, and @yoavf for their contributions!

#4-6, #week-in-core