Skip to content

Commit

Permalink
Merge pull request #63 from thinkshout/removal
Browse files Browse the repository at this point in the history
1.2.5.2
  • Loading branch information
BrendanJercich authored Aug 9, 2024
2 parents c5f12d3 + 75b7e1a commit b3b16e9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# wp-otis
WordPress plugin for the Oregon Tourism Information System

Version 1.2.4.1
Version 1.2.5.2
4 changes: 2 additions & 2 deletions src/Otis_Dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ class Otis_Dashboard

public function otis_dashboard_scripts() {
wp_enqueue_media();
wp_register_script( 'otis-js', plugins_url( '../dist/otis.js', __FILE__ ), [], '2.5.1', true );
wp_register_script( 'otis-js', plugins_url( '../dist/otis.js', __FILE__ ), [], '2.5.2', true );
wp_localize_script( 'otis-js', 'otisDash', array( 'ajax_url' => admin_url( 'admin-ajax.php' ), 'admin_url' => admin_url() ) );

wp_enqueue_script( 'otis-js' );
wp_enqueue_style( 'otis-styles', plugins_url( '../dist/otis.css', __FILE__ ), [], '2.5.1' );
wp_enqueue_style( 'otis-styles', plugins_url( '../dist/otis.css', __FILE__ ), [], '2.5.2' );
}

public function otis_dashboard_page() {
Expand Down
5 changes: 5 additions & 0 deletions src/Otis_Importer.php
Original file line number Diff line number Diff line change
Expand Up @@ -698,6 +698,11 @@ private function _delete_removed_listings( $assoc_args = [] ) {
if ( $has_next_page ) {
$assoc_args['deletes_page'] = $deletes_page + 1;
$assoc_args = array_merge( $assoc_args, $api_params );
// Action Scheduler expects the top level key of $assoc_args to be 'params'.
// This means we need to rewrap the array before passing it to schedule_action().
if ( !isset( $assoc_args['params'] ) ) {
$assoc_args = array( 'params' => $assoc_args );
}
$this->schedule_action( 'wp_otis_delete_removed_listings', $assoc_args );
$this->logger->log( 'Scheduling fetch of next page of removed listings' );
return;
Expand Down
2 changes: 1 addition & 1 deletion wp-otis.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Author URI: thinkshout.com
* Text Domain: wp-otis
* Domain Path: /languages
* Version: 1.2.5
* Version: 1.2.5.2
*
* @package Otis
*/
Expand Down

0 comments on commit b3b16e9

Please sign in to comment.