[wp-trac] [WordPress Trac] #61269: Plugin Dependencies: Add filter to restore auto-redirect after plugin activation

WordPress Trac noreply at wordpress.org
Fri May 24 02:03:23 UTC 2024


#61269: Plugin Dependencies: Add filter to restore auto-redirect after plugin
activation
-------------------------------------------------+-------------------------
 Reporter:  hellofromTonya                       |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  reopened
 Priority:  normal                               |   Milestone:  6.5.4
Component:  Upgrade/Install                      |     Version:  6.5
 Severity:  normal                               |  Resolution:
 Keywords:  needs-testing needs-dev-note has-    |     Focuses:
  patch has-testing-info                         |  administration
-------------------------------------------------+-------------------------

Comment (by hellofromTonya):

 Replying to [comment:24 jorbin]:
 > This would also mean we would want to rename the parameter from `url` to
 `redirect_url` so that it is more specific. It has the benefit of reducing
 confusion and being forwards compatible but it comes at the cost of
 requiring plugin developers to stay on top of changes. I think that cost
 is reasonable since if you are releasing a plugin you should be expected
 to test it and update it for every major WordPress release.

 I don't think the parameter needs to be renamed.

 Why?

 The `url` parameter is in the "configuration data". It is the URL where a
 user will configure the plugin. Users go to that URL via redirect in 6.5.4
 and possibly by some other means (e.g. by a new user action) in the
 future. Thus, it's not a `redirect_url`, but rather the plugin's
 configuration `url`.

 In other words, what may change in the future is how the URL is triggered.

 I advocate for leaving it as `url`, as it aligns well for the intent of
 today and into the future (with what is known today).

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


More information about the wp-trac mailing list