Welcome back the latest issue of Week in Core, covering changes [39759-39923]. Here are the highlights:
- 165 commits
- 44 contributors
- 87 tickets created
- 9 tickets reopened
- 83 tickets closed
Ticket numbers based on trac timeline for the period above. The following is a summary of commits, organized by component.
Code Changes
Administration
- List Tables: Pass the
$which parameter to restrict_manage_posts filter instance in WP_Media_List_Table, missed in [37422]. [39917] #38772
- Improve tab character width in Plugins and Themes editor. [39897] #38684
Build/Test Tools
- Add
assertNotFalse() method to WP_UnitTestCase and use it where appropriate. [39919] #39219
- Correctly reference function names in
@covers entries. [39918] #39235
- After [29858], update
.jsintrc to use spaces, not tabs. [39898] #39359
Bundled Theme
- Twenty Seventeen: Remove duplicate
global $post declaration in twentyseventeen_front_page_section(). [39909] #39590
- Twenty Seventeen: Correct
@param entries for twentyseventeen_custom_colors_css filter. [39901] #39575
- Twenty Seventeen: Remove extra asterisk from a translator comment so the comment could be parsed correctly. [39894] #39116
Cache API
- Docs: Add missing
@param type for wp_cache_get_last_changed(). [39900] #39571
Database
- dbDelta: Ignore index subparts when checking for duplicate indices. [39921] #34870
Editor
External Libraries
Formatting
I18N
Media
- Use a consistent error message for file type errors on uploading. [39891] #33242
Misc
- Post-4.7.1 version bump for 4.7 branch. [39883]
- Only show major version in readme.html for 4.7 branch [39871]
- Media: Fix exif_imagetype check in wp_get_image_mime [39851-39861]
- Tests: Replace broken codeispoetry.png file. [39848-39849]
- Use plural string ‘Maintenance and Security Releases’ since we have two now [39847]
- REST API: Change which users are shown in the users endpoint. [39844]
- Media: Improve image filetype checking. [39832-39842]
- Updates: Translate plugin data on the Updates screen. [39808]
- Themes: Fix markup for theme name fallbacks. [39807]
- Multisite: Use
wp_rand() in signup key creation. [39795-39806]
- Mail: Disable wp-mail.php when
mailserver_url is mail.example.com. [39772-39782], [39784]
Plugins
- Docs: Use a consistent description for
$plugin parameter in various plugin API functions. [39890] #36333
- Docs: Improve the DocBlock for
validate_plugin(). [39889] #36333
Posts, Post Types
- Increase the height of post slug input to prevent certain characters from being cut in Firefox on Windows. [39905] #28084
REST API
Taxonomy
- Docs: In
wp_set_object_terms(), add a note that passing an empty value as $terms argument will remove all related terms. [39893] #36690
Text Changes
- Taxonomy: Add an explanation for “Parent” dropdown for hierarchical custom taxonomies. [39895] #23447
Themes
- Add a unit test for
get_theme_feature_list() to make sure that the list of theme features pulled from the WordPress.org API returns the expected data structure. [39906] #28121
- Docs: After [37083], change “HEX format” to “3- or 6-digit hexadecimal form” for clarity. [39888] #36336
- Use curly braces for variables inside strings in `get_page_template() to explicitly specify the end of the variable name. [39884] #38625
TinyMCE
- Strip browser inserted <u> and <font> tags from inside links when copying and pasting in IE and Edge. [39916] #39570
- Ensure the inline toolbar is shown and properly positioned when there are several wpview blocks in the editor and the user selects one after the other. [39910] #38849
- Prevent the inline toolbar from appearing on partially selected wpview nodes. This can happen when HTML is initially loaded in the editor and wpview is the first node, or sometimes on repeatedly pasting the same wpview. [39904] #38849
- When inserting a wpview, place the caret after is so the user can continue typing without interruption. [39903] #39337
- Improve removal of spaces from empty paragraphs when loading HTML in the editor. [39902] #39437
Upload
Users
- Introduce
signup_site_meta and signup_user_meta for filtering signup metadata in wpmu_signup_blog() and wpmu_signup_user(), respectively. [39920] #39223
- User Query: Cast
$user_total as an int. [39915] #39297
- I18N: Reference correct placeholder in a translator comment added in [30333]. [39908] #30264
- Display the name of user being edited on Edit User screen. [39907] #28182
- Docs: Make
$meta parameter description in multisite signup and registration functions more consistent. [39887] #38781
- In
wpmu_signup_blog() and wpmu_signup_user(), pass unserialized signup meta data to after_signup_site and after_signup_user filters introduced in [34112], to match the documented value. [39886] #38781
Widgets
- In
unregister_sidebar(), rename the $name parameter to $sidebar_id for consistency with is_registered_sidebar(). [39892] #35147
- Add nonce for widget accessibility mode. [39760-39771] #23328
Thanks to @aaroncampbell, @afercia, @afzalmultani, @Ankit K Gupta, @azaozz, @barryceelen, @ccprog, @dd32, @diddledan, @DrewAPicture, @dspilka, @F J Kaiser, @gitlost, @iandunn, @iseulde, @ixkaito, @jackreichert, @jblz, @jeremyfelt, @jnylen0, @joemcgill, @johnjamesjacoby, @kuck1u, @MaximeCulea, @Mista-Flo, @netweb, @ocean90, @pavelevap, @pbearne, @pento, @peterwilsoncc, @Presskopp, @rachelbaker, @raggedrobins, @rmccue, @runciters, @seanchayes, @SergeyBiryukov, @Soean, @swissspidy, @theMikeD, @tmatsuur, @vortfu, and @wpsmith for their contributions!
#4-8, #week-in-core