Changeset 3749195 for roxyapi/trunk/src/Plugin.php
- Timestamp:
- 10/15/2026 07:29:29 PM (4 days ago)
- File:
-
- 1 edited
-
roxyapi/trunk/src/Plugin.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
roxyapi/trunk/src/Plugin.php
r3642986 r3749195 13 13 14 14 use RoxyAPI\Admin\ActionLinks; 15 use RoxyAPI\Admin\BuilderPage; 15 16 use RoxyAPI\Admin\DashboardWidget; 16 17 use RoxyAPI\Admin\DemoPage; … … 96 97 SettingsPage::register(); 97 98 ShortcodesPage::register(); 99 BuilderPage::register(); 98 100 DemoPage::register(); 99 101 Notice::register(); … … 233 235 234 236 /** 235 * One-shot redirect to the Settings pageright after activation.237 * One-shot redirect to Create a reading right after activation. 236 238 * 237 239 * Set by Activation::activate(). Skipped when WordPress just activated … … 249 251 // request landing on admin_init doesn't eat the redirect intended for 250 252 // the next real admin page load. 251 if ( wp_doing_ajax() || wp_doing_cron() ) {253 if ( wp_doing_ajax() || wp_doing_cron() || is_network_admin() ) { 252 254 return; 253 255 } … … 267 269 268 270 delete_transient( 'roxyapi_activated' ); 269 // Land new installs on the Shortcodes library, not Settings. The plugin 270 // renders on a free daily allowance with no key, so the fastest path to 271 // a working reading is the copy-paste catalog, not a key-entry form. The 272 // key field stays one click away under the RoxyAPI menu for more headroom. 273 wp_safe_redirect( admin_url( 'admin.php?page=' . ShortcodesPage::PAGE_SLUG ) ); 271 // The builder guides site owners to a working reading on the free allowance. 272 wp_safe_redirect( admin_url( 'admin.php?page=' . BuilderPage::PAGE_SLUG ) ); 274 273 exit; 275 274 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)