[wp-trac] [WordPress Trac] #52191: Show plugin update notifications on Plugins screen on WordPress Multisite sub blogs

WordPress Trac noreply at wordpress.org
Mon Nov 15 22:45:53 UTC 2021


#52191: Show plugin update notifications on Plugins screen on WordPress Multisite
sub blogs
----------------------------+--------------------------------------------
 Reporter:  DuisterDenHaag  |       Owner:  (none)
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  Future Release
Component:  Plugins         |     Version:  3.1
 Severity:  minor           |  Resolution:
 Keywords:  needs-patch     |     Focuses:  ui, administration, multisite
----------------------------+--------------------------------------------

Comment (by DuisterDenHaag):

 Replying to [comment:5 sebastian.pisula]:
 > Replying to [comment:4 DuisterDenHaag]:
 > > Any news?
 >
 > Do you think that solution below should be helpful?
 >
 > In **wp_plugin_update_rows()** function you should remove condition:
 >
 > {{{#!php
 > <?php
 >
 > if ( ! current_user_can( 'update_plugins' ) ) {
 >      return;
 > }
 > }}}

 Sorry, but I do not think that removing that line would change anything,
 because the `wp_plugin_update_rows` function still adds the plugin file to
 the same `wp_plugin_update_row` function, which performs the check to hide
 the complete update notice on all sub blogs for all users.

 In WordPress 5.9-alpha-52154 the line containing the `if (
 is_network_admin() || ! is_multisite() )` check is now on line 465 (in my
 original post that was line 541), by the way.

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


More information about the wp-trac mailing list