[wp-trac] [WordPress Trac] #60461: Running the install script shows database error after plugin dependencies changeset

WordPress Trac noreply at wordpress.org
Tue Feb 13 13:28:22 UTC 2024


#60461: Running the install script shows database error after plugin dependencies
changeset
------------------------------+----------------------
 Reporter:  desrosj           |       Owner:  costdev
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  6.5
Component:  Upgrade/Install   |     Version:
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:
------------------------------+----------------------
Changes (by costdev):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"57622" 57622]:
 {{{
 #!CommitTicketReference repository="" revision="57622"
 Upgrade/Install: Only check plugins whose data is already stored.

 In [57592], some `update_option()` calls were removed from bootstrapping.
 However, this also removed a check to ensure an array key existed, and
 populated it if not.

 Scaffolding tests by WP-CLI revealed that a plugin in the `active_plugins`
 option may not have data already stored within the `plugin_data` option,
 causing a PHP warning for an undefined array key. This data will be added
 the next time `get_plugins()` is called.

 This adds a condition to ensure the requirements checks are only performed
 on plugins whose data is already stored in the `plugin_data` option.

 Follow-up to [57592].

 Props swissspidy, hellofromTonya, costdev.
 Fixes #60461.
 }}}

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


More information about the wp-trac mailing list