[wp-trac] [WordPress Trac] #50280: Enable auto-updates shows for plugins with no support

WordPress Trac noreply at wordpress.org
Tue Jun 2 22:01:44 UTC 2020


#50280: Enable auto-updates shows for plugins with no support
-------------------------------------------------+-------------------------
 Reporter:  elrae                                |       Owner:  audrasjb
     Type:  enhancement                          |      Status:  accepted
 Priority:  normal                               |   Milestone:  5.5
Component:  Upgrade/Install                      |     Version:  trunk
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch dev-feedback needs-        |     Focuses:  docs,
  testing                                        |  administration
-------------------------------------------------+-------------------------
Changes (by audrasjb):

 * status:  new => accepted
 * focuses:  administration => docs, administration
 * component:  Plugins => Upgrade/Install
 * owner:  (none) => audrasjb
 * milestone:  Awaiting Review => 5.5
 * keywords:   => has-patch dev-feedback needs-testing
 * type:  defect (bug) => enhancement


Comment:

 Moving to milestone 5.5 as per today’s core-auto-updates meeting.
 We agreed to provide a filter to allow plugin authors and WordPress
 developers to filter the content of the auto-updates column.

 In `50280.diff`, I started with Plugins screen and Multisite Themes screen
 which are pretty similar, just to validate the filter proposal (name,
 content of the filter, overall approach).

 I tested those filters using the following code:

 {{{#!php
 <?php
 function wporg_auto_update_plugin_column( $plugin_auto_update_content,
 $plugin_file, $plugin_data, $status ) {
         if ( 'hello.php' === $plugin_file ) {
                 $plugin_auto_update_content = array( '<p>This plugin
 doesn’t need auto-updates.' );
         }
         return $plugin_auto_update_content;
 }
 add_filter( 'plugin_auto_update_content',
 'wporg_auto_update_plugin_column', 10, 4 );
 }}}

 It works fine. See the above screenshot for reference.

 Ping @azaozz for review.
 I’ll add a comment later about the single site Themes screen, I have to
 test my approach of this screen before sending a full patch.

 Cheers,
 Jb

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50280#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list