[wp-trac] [WordPress Trac] #65099: Fix: Only auto register settings if the plugin the connector references is installed and active

WordPress Trac noreply at wordpress.org
Thu Apr 30 14:05:20 UTC 2026


#65099: Fix: Only auto register settings if the plugin the connector references is
installed and active
---------------------------------------------+-----------------------------
 Reporter:  jorgefilipecosta                 |       Owner:
                                             |  jorgefilipecosta
     Type:  defect (bug)                     |      Status:  closed
 Priority:  normal                           |   Milestone:  7.0
Component:  General                          |     Version:  trunk
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit  |     Focuses:
---------------------------------------------+-----------------------------
Changes (by jorgefilipecosta):

 * owner:  (none) => jorgefilipecosta
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"62289" 62289]:
 {{{
 #!CommitTicketReference repository="" revision="62289"
 Connectors: Gate default setting auto-registration on `is_active`.

 Update `_wp_register_default_connector_settings()` to register a
 connector's
 default API key setting only when the connector's `plugin.is_active`
 callback
 returns `true`.
 Add tests covering the gate's branches: setting skipped when `is_active`
 returns `false`, setting registered when it returns `true`.

 Props jorgefilipecosta, gziolo, peterwilsoncc.
 Fixes #65099.
 }}}

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


More information about the wp-trac mailing list