[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
Wed May 6 17:53:03 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:
  fixed-major dev-reviewed                       |
-------------------------------------------------+-------------------------
Changes (by desrosj):

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


Comment:

 In [changeset:"62306" 62306]:
 {{{
 #!CommitTicketReference repository="" revision="62306"
 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`.

 Reviewed by desrosj.
 Merges [62289] to the 7.0 branch.

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

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


More information about the wp-trac mailing list