[buddypress-trac] [BuddyPress Trac] #7196: Prevent BP from being updated when minimum requirements are not met

buddypress-trac noreply at wordpress.org
Sat Sep 17 01:47:50 UTC 2016


#7196: Prevent BP from being updated when minimum requirements are not met
-----------------------------------+------------------
 Reporter:  boonebgorges           |       Owner:
     Type:  enhancement            |      Status:  new
 Priority:  normal                 |   Milestone:  2.7
Component:  Core                   |     Version:
 Severity:  normal                 |  Resolution:
 Keywords:  2nd-opinion has-patch  |
-----------------------------------+------------------
Changes (by boonebgorges):

 * keywords:  needs-patch => 2nd-opinion has-patch


Comment:

 [attachment:7196.diff] is an attempt to prevent plugin updates through
 WP's native UIs.

 It's not easy to do, and it's not beautiful. In the case of the
 "update_row" on plugins.php, there's an action that allows me to unhook
 WP's native notice and replace it with my own. In the case of the bulk
 update checkboxes, the only option I could find was to disable with
 JavaScript. It's not foolproof, but it's not meant to be: our primary goal
 here is to dissuade the unknowing from breaking their site.

 The message that I added in the plugin row is very general:

 {{{
 printf( esc_html__( 'A BuddyPress update is available, but your system is
 not compatible. See %s for more information.', 'buddypress' ), '<a
 href="#">some link</a>' );
 }}}

 where "some link" will presumably be a Codex page explaining the
 situation. I think we can craft some sort of brief message to use here and
 also in an admin notice (not implemented here yet), and then link off to a
 Codex page that explains in some more detail.

 I can work on some of this documentation, and cleaning up the patch, but I
 first wanted to run the technique by the group in case anyone had a better
 idea of how to do it.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7196#comment:5>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list