Last Week in WordPress Core

Hi Everyone!

It’s time for Last Week in WordPress CoreCore Core is the set of software required to run WordPress. The Core Development Team builds WordPress.! This update covers through Sunday, October 5th, and contains many commits from WordCampWordCamp WordCamps are casual, locally-organized conferences covering everything related to WordPress. They're one of the places where the WordPress community comes together to teach one another what they’ve learned throughout the year and share the joy. Learn more. Europe. Yay! Things are rolling along well, including first passes on pinning the adminadmin (and super admin) menu, and many fixes to media and image handling. A complete summary is below.

Name Change?
It’s been suggested that we change the name of this post to “Core Weekly,” because apparently there has been confusion about this being the last week of WordPress Core, which would just be sad. I like the name idea. Any comments or suggestions?

Admin

  • First pass at pinning the admin menu on scrolling similarly to how the side metaboxes are pinned on the Edit Post screen. [29835] #29806
  • Add classes to form containers on Edit User and 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. screens. [29803] [29804] #29348 #28196
  • Add default z-index to the admin menu, see [29841] #29806
  • Use correct context for “Name” and “Parent” strings on taxonomy screens. Remove unnecessary context for “Slug” and “Description” strings. [29821] #29824
  • When switching to the Text editor, make the textarea visible to screen readers. [29815] #29815
  • Add a default 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. to title_save_pre to avoid extra whitespace. [29801] #19904

Media

  • Account for MEDIA_TRASH in both the Media Grid and Media List Table. [29810] [29811] [29812] #29742
  • Add the date filter from media grid to the media modal. [29813] #28990
  • Add a namespace to the click handler registration for .insert-media in media-editor.js: click.add-media-button to allow devs to override the default behavior. [29802] #23096
  • In wp_delete_attachment(): account for orphan sizes by looping over the sizes stored in metadata, instead of relying on the current sizes stored in $_wp_additional_image_sizes. [29816] #24518
  • For attachment-compat fields, show a spinner while wp.media.model.Attachment.saveCompat() is firing. #27028 [29831]
  • In the admin, give media list table icons auto for width and height. In the post thumbnail metaboxMetabox A post metabox is a draggable box shown on the post editing screen. Its purpose is to allow the user to select or enter information in addition to the main post content. This information should be related to the post in some way., apply width: auto. If someone turns on support SVG files, this will allow them to show up. [29832] #26256
  • Allow PSDs (Photoshop documents) to be uploaded. [29833] #28805
  • Fix setting default quality in WP_Image_Editor. [29834] #29856
  • Pass the requested size to wp_get_attachment_image_attributes filter. [29836] #29869

Networknetwork (versus site, blog) Admin

  • Don’t display update count for Themes when the user doesn’t have the update_themes cap. [29817] #29651
  • Don’t display update count for Plugins when there aren’t any/count is 0 [29817] #29651
  • Properly check if the theme is active on the main site to avoid deleting it via bulk actions. [29839] #29861

Plugins

  • In activate_plugin(), do not re-run the activation routine for already-active network-wide plugins. [29818] #28651
  • Avoid a PHPPHP The web scripting language in which WordPress is primarily architected. WordPress requires PHP 5.6.20 or higher notice in list_plugin_updates() if plugins_api() returned a WP_Error object. [29825] #29583
  • Use correct links for filtering 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 reviews. #29826 [29754]
  • Plugin search: Wrap results in a form to fix pagination’s paged input field. #18724 [29829]
  • Pass the requested size to wp_get_attachment_image_attributes filter. [29836] #29869

Users

  • In the wp_new_blog_notification() email template, include the login url. [29806] #21089
  • Always sanitize user_nicename in wp_insert_user() to avoid broken author archive permalinks. [29819] #29696

Comments

  • WP_Comment_Query: comment__in, comment__not_in, post__in, post__not_in. [29808] #25386
  • Add a class attribute for submit button in comment form. [29809] #20446
  • Add an aria-label attribute with commenter’s name to get_comment_reply_link(). [29822] #16433

Thanks to @afercia, @andg, @andrewryno, @arippberger, @avryl, @azaozz, @bainternet, @boonebgorges, @ccprice, @desrosj, @ericlewis, @georgestephanis, @janhenckens, @jarednova, @jb510, @jbrinley, @jeremyfelt, @jesin, @joedolson, @joemcgill, @JoshuaAbenazer, @karpstrucking, @markoheijnen, @mattheu, @merty, @michalzuber, @mordauk, @nikolov.tmw, @nofearinc, @obenland, @ocean90, @OriginalEXE, @paulwilde, @peterchester, @SergeyBiryukov, and @wonderboymusic for their contributions this week, and to @swissspidy for help in compiling this post.

This post covers 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. [29800] to [29841]. For the complete list of commits to trunktrunk A directory in Subversion containing the latest development code in preparation for the next major release cycle. If you are running "trunk", then you are on the latest revision., check out the log on trac. Interested in joining in? Write or test a patch for 4.1. Also, don’t miss the weekly meeting today at 20:00 UTC.

#4-1, #week-in-core