Changeset 2501781
- Timestamp:
- 03/23/2021 12:50:48 PM (5 years ago)
- Location:
- request-io
- Files:
-
- 2 edited
-
tags/1.0/request-io.php (modified) (3 diffs)
-
trunk/request-io.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
request-io/tags/1.0/request-io.php
r2501690 r2501781 27 27 { 28 28 // Setup background request 29 add_action(' plugins_loaded', array($this, 'create_background_request'));29 add_action('init', array($this, 'create_background_request')); 30 30 // Hook into the admin menu 31 31 add_action('admin_menu', array($this, 'create_plugin_settings_page')); … … 263 263 264 264 public function create_background_request() { 265 $this->update_cache_request = new Request_IO_Background_Process(); 265 global $async_request; 266 $async_request = new Request_IO_Background_Process(); 266 267 } 267 268 … … 293 294 strpos($_SERVER['REQUEST_URI'], '.xml') === false 294 295 ) { 295 $this->update_cache_request->data(array('api_url' => $api_url, 'home_url' => $this->siteUrl())); 296 $this->update_cache_request->dispatch(); 296 global $async_request; 297 $async_request->data(array('api_url' => $api_url, 'home_url' => $this->siteUrl())); 298 $async_request->dispatch(); 297 299 } 298 300 -
request-io/trunk/request-io.php
r2501690 r2501781 27 27 { 28 28 // Setup background request 29 add_action(' plugins_loaded', array($this, 'create_background_request'));29 add_action('init', array($this, 'create_background_request')); 30 30 // Hook into the admin menu 31 31 add_action('admin_menu', array($this, 'create_plugin_settings_page')); … … 263 263 264 264 public function create_background_request() { 265 $this->update_cache_request = new Request_IO_Background_Process(); 265 global $async_request; 266 $async_request = new Request_IO_Background_Process(); 266 267 } 267 268 … … 293 294 strpos($_SERVER['REQUEST_URI'], '.xml') === false 294 295 ) { 295 $this->update_cache_request->data(array('api_url' => $api_url, 'home_url' => $this->siteUrl())); 296 $this->update_cache_request->dispatch(); 296 global $async_request; 297 $async_request->data(array('api_url' => $api_url, 'home_url' => $this->siteUrl())); 298 $async_request->dispatch(); 297 299 } 298 300
Note: See TracChangeset
for help on using the changeset viewer.