Changeset 3136099
- Timestamp:
- 08/15/2024 12:09:58 PM (20 months ago)
- Location:
- auto-youtube-importer
- Files:
-
- 155 added
- 27 edited
-
tags/1.1.0 (added)
-
tags/1.1.0/app (added)
-
tags/1.1.0/app/ActionScheduler.php (added)
-
tags/1.1.0/app/AdminAssets.php (added)
-
tags/1.1.0/app/AdminMenu.php (added)
-
tags/1.1.0/app/Controller.php (added)
-
tags/1.1.0/app/Helper (added)
-
tags/1.1.0/app/Helper/FeedForm.php (added)
-
tags/1.1.0/app/Helper/Importer (added)
-
tags/1.1.0/app/Helper/Importer.php (added)
-
tags/1.1.0/app/Helper/Importer/FeedItem.php (added)
-
tags/1.1.0/app/Helper/Youtube.php (added)
-
tags/1.1.0/app/Hooks.php (added)
-
tags/1.1.0/app/PostTypes.php (added)
-
tags/1.1.0/app/RestAPI (added)
-
tags/1.1.0/app/RestAPI.php (added)
-
tags/1.1.0/app/RestAPI/ACL.php (added)
-
tags/1.1.0/app/RestAPI/Response.php (added)
-
tags/1.1.0/app/Settings.php (added)
-
tags/1.1.0/app/Template.php (added)
-
tags/1.1.0/assets (added)
-
tags/1.1.0/assets/css (added)
-
tags/1.1.0/assets/css/admin.css (added)
-
tags/1.1.0/assets/js (added)
-
tags/1.1.0/assets/js/admin.js (added)
-
tags/1.1.0/assets/loader-icon.png (added)
-
tags/1.1.0/auto-youtube-importer.php (added)
-
tags/1.1.0/autoload.php (added)
-
tags/1.1.0/definitions.php (added)
-
tags/1.1.0/functions.php (added)
-
tags/1.1.0/languages (added)
-
tags/1.1.0/languages/auto-youtube-importer.pot (added)
-
tags/1.1.0/lib (added)
-
tags/1.1.0/lib/action-scheduler (added)
-
tags/1.1.0/lib/action-scheduler/README.md (added)
-
tags/1.1.0/lib/action-scheduler/action-scheduler.php (added)
-
tags/1.1.0/lib/action-scheduler/changelog.txt (added)
-
tags/1.1.0/lib/action-scheduler/classes (added)
-
tags/1.1.0/lib/action-scheduler/classes/ActionScheduler_ActionClaim.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/ActionScheduler_ActionFactory.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/ActionScheduler_AdminView.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/ActionScheduler_AsyncRequest_QueueRunner.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/ActionScheduler_Compatibility.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/ActionScheduler_DataController.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/ActionScheduler_DateTime.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/ActionScheduler_Exception.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/ActionScheduler_FatalErrorMonitor.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/ActionScheduler_InvalidActionException.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/ActionScheduler_ListTable.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/ActionScheduler_LogEntry.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/ActionScheduler_NullLogEntry.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/ActionScheduler_OptionLock.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/ActionScheduler_QueueCleaner.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/ActionScheduler_QueueRunner.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/ActionScheduler_Versions.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/ActionScheduler_WPCommentCleaner.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/ActionScheduler_wcSystemStatus.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/WP_CLI (added)
-
tags/1.1.0/lib/action-scheduler/classes/WP_CLI/ActionScheduler_WPCLI_Clean_Command.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/WP_CLI/ActionScheduler_WPCLI_QueueRunner.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/WP_CLI/ActionScheduler_WPCLI_Scheduler_command.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/WP_CLI/Migration_Command.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/WP_CLI/ProgressBar.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/abstracts (added)
-
tags/1.1.0/lib/action-scheduler/classes/abstracts/ActionScheduler.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/abstracts/ActionScheduler_Abstract_ListTable.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/abstracts/ActionScheduler_Abstract_QueueRunner.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/abstracts/ActionScheduler_Abstract_RecurringSchedule.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/abstracts/ActionScheduler_Abstract_Schedule.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/abstracts/ActionScheduler_Abstract_Schema.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/abstracts/ActionScheduler_Lock.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/abstracts/ActionScheduler_Logger.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/abstracts/ActionScheduler_Store.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/abstracts/ActionScheduler_TimezoneHelper.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/actions (added)
-
tags/1.1.0/lib/action-scheduler/classes/actions/ActionScheduler_Action.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/actions/ActionScheduler_CanceledAction.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/actions/ActionScheduler_FinishedAction.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/actions/ActionScheduler_NullAction.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/data-stores (added)
-
tags/1.1.0/lib/action-scheduler/classes/data-stores/ActionScheduler_DBLogger.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/data-stores/ActionScheduler_HybridStore.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/data-stores/ActionScheduler_wpCommentLogger.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/data-stores/ActionScheduler_wpPostStore.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/data-stores/ActionScheduler_wpPostStore_PostStatusRegistrar.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/data-stores/ActionScheduler_wpPostStore_PostTypeRegistrar.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/data-stores/ActionScheduler_wpPostStore_TaxonomyRegistrar.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/migration (added)
-
tags/1.1.0/lib/action-scheduler/classes/migration/ActionMigrator.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/migration/ActionScheduler_DBStoreMigrator.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/migration/BatchFetcher.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/migration/Config.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/migration/Controller.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/migration/DryRun_ActionMigrator.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/migration/DryRun_LogMigrator.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/migration/LogMigrator.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/migration/Runner.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/migration/Scheduler.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/schedules (added)
-
tags/1.1.0/lib/action-scheduler/classes/schedules/ActionScheduler_CanceledSchedule.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/schedules/ActionScheduler_CronSchedule.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/schedules/ActionScheduler_IntervalSchedule.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/schedules/ActionScheduler_NullSchedule.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/schedules/ActionScheduler_Schedule.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/schedules/ActionScheduler_SimpleSchedule.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/schema (added)
-
tags/1.1.0/lib/action-scheduler/classes/schema/ActionScheduler_LoggerSchema.php (added)
-
tags/1.1.0/lib/action-scheduler/classes/schema/ActionScheduler_StoreSchema.php (added)
-
tags/1.1.0/lib/action-scheduler/deprecated (added)
-
tags/1.1.0/lib/action-scheduler/deprecated/ActionScheduler_Abstract_QueueRunner_Deprecated.php (added)
-
tags/1.1.0/lib/action-scheduler/deprecated/ActionScheduler_AdminView_Deprecated.php (added)
-
tags/1.1.0/lib/action-scheduler/deprecated/ActionScheduler_Schedule_Deprecated.php (added)
-
tags/1.1.0/lib/action-scheduler/deprecated/ActionScheduler_Store_Deprecated.php (added)
-
tags/1.1.0/lib/action-scheduler/deprecated/functions.php (added)
-
tags/1.1.0/lib/action-scheduler/functions.php (added)
-
tags/1.1.0/lib/action-scheduler/lib (added)
-
tags/1.1.0/lib/action-scheduler/lib/WP_Async_Request.php (added)
-
tags/1.1.0/lib/action-scheduler/lib/cron-expression (added)
-
tags/1.1.0/lib/action-scheduler/lib/cron-expression/CronExpression.php (added)
-
tags/1.1.0/lib/action-scheduler/lib/cron-expression/CronExpression_AbstractField.php (added)
-
tags/1.1.0/lib/action-scheduler/lib/cron-expression/CronExpression_DayOfMonthField.php (added)
-
tags/1.1.0/lib/action-scheduler/lib/cron-expression/CronExpression_DayOfWeekField.php (added)
-
tags/1.1.0/lib/action-scheduler/lib/cron-expression/CronExpression_FieldFactory.php (added)
-
tags/1.1.0/lib/action-scheduler/lib/cron-expression/CronExpression_FieldInterface.php (added)
-
tags/1.1.0/lib/action-scheduler/lib/cron-expression/CronExpression_HoursField.php (added)
-
tags/1.1.0/lib/action-scheduler/lib/cron-expression/CronExpression_MinutesField.php (added)
-
tags/1.1.0/lib/action-scheduler/lib/cron-expression/CronExpression_MonthField.php (added)
-
tags/1.1.0/lib/action-scheduler/lib/cron-expression/CronExpression_YearField.php (added)
-
tags/1.1.0/lib/action-scheduler/lib/cron-expression/LICENSE (added)
-
tags/1.1.0/lib/action-scheduler/lib/cron-expression/README.md (added)
-
tags/1.1.0/lib/action-scheduler/license.txt (added)
-
tags/1.1.0/lib/action-scheduler/readme.txt (added)
-
tags/1.1.0/lib/action-scheduler/vendor (added)
-
tags/1.1.0/lib/action-scheduler/vendor/autoload.php (added)
-
tags/1.1.0/lib/action-scheduler/vendor/composer (added)
-
tags/1.1.0/lib/action-scheduler/vendor/composer/ClassLoader.php (added)
-
tags/1.1.0/lib/action-scheduler/vendor/composer/InstalledVersions.php (added)
-
tags/1.1.0/lib/action-scheduler/vendor/composer/LICENSE (added)
-
tags/1.1.0/lib/action-scheduler/vendor/composer/autoload_classmap.php (added)
-
tags/1.1.0/lib/action-scheduler/vendor/composer/autoload_namespaces.php (added)
-
tags/1.1.0/lib/action-scheduler/vendor/composer/autoload_psr4.php (added)
-
tags/1.1.0/lib/action-scheduler/vendor/composer/autoload_real.php (added)
-
tags/1.1.0/lib/action-scheduler/vendor/composer/autoload_static.php (added)
-
tags/1.1.0/lib/action-scheduler/vendor/composer/installed.json (added)
-
tags/1.1.0/lib/action-scheduler/vendor/composer/installed.php (added)
-
tags/1.1.0/lib/action-scheduler/vendor/composer/platform_check.php (added)
-
tags/1.1.0/readme.txt (added)
-
tags/1.1.0/templates (added)
-
tags/1.1.0/templates/_form-field.php (added)
-
tags/1.1.0/templates/importer-form.php (added)
-
tags/1.1.0/templates/importer-scheduled.php (added)
-
tags/1.1.0/templates/settings.php (added)
-
tags/1.1.0/templates/tools.php (added)
-
tags/1.1.0/templates/upgrade-plugin.php (added)
-
trunk/auto-youtube-importer.php (modified) (2 diffs)
-
trunk/lib/action-scheduler/README.md (modified) (1 diff)
-
trunk/lib/action-scheduler/action-scheduler.php (modified) (6 diffs)
-
trunk/lib/action-scheduler/changelog.txt (modified) (3 diffs)
-
trunk/lib/action-scheduler/classes/ActionScheduler_ActionFactory.php (modified) (2 diffs)
-
trunk/lib/action-scheduler/classes/ActionScheduler_AdminView.php (modified) (3 diffs)
-
trunk/lib/action-scheduler/classes/ActionScheduler_QueueCleaner.php (modified) (1 diff)
-
trunk/lib/action-scheduler/classes/ActionScheduler_QueueRunner.php (modified) (2 diffs)
-
trunk/lib/action-scheduler/classes/abstracts/ActionScheduler_Abstract_ListTable.php (modified) (4 diffs)
-
trunk/lib/action-scheduler/classes/abstracts/ActionScheduler_Abstract_QueueRunner.php (modified) (3 diffs)
-
trunk/lib/action-scheduler/classes/abstracts/ActionScheduler_Abstract_RecurringSchedule.php (modified) (2 diffs)
-
trunk/lib/action-scheduler/classes/abstracts/ActionScheduler_Logger.php (modified) (1 diff)
-
trunk/lib/action-scheduler/classes/abstracts/ActionScheduler_Store.php (modified) (2 diffs)
-
trunk/lib/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php (modified) (5 diffs)
-
trunk/lib/action-scheduler/classes/data-stores/ActionScheduler_wpPostStore.php (modified) (4 diffs)
-
trunk/lib/action-scheduler/classes/data-stores/ActionScheduler_wpPostStore_PostTypeRegistrar.php (modified) (1 diff)
-
trunk/lib/action-scheduler/classes/migration/Config.php (modified) (1 diff)
-
trunk/lib/action-scheduler/classes/schedules/ActionScheduler_CronSchedule.php (modified) (1 diff)
-
trunk/lib/action-scheduler/classes/schedules/ActionScheduler_IntervalSchedule.php (modified) (1 diff)
-
trunk/lib/action-scheduler/deprecated/ActionScheduler_AdminView_Deprecated.php (modified) (1 diff)
-
trunk/lib/action-scheduler/functions.php (modified) (4 diffs)
-
trunk/lib/action-scheduler/readme.txt (modified) (5 diffs)
-
trunk/lib/action-scheduler/vendor/autoload.php (modified) (1 diff)
-
trunk/lib/action-scheduler/vendor/composer/autoload_real.php (modified) (2 diffs)
-
trunk/lib/action-scheduler/vendor/composer/autoload_static.php (modified) (2 diffs)
-
trunk/lib/action-scheduler/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
auto-youtube-importer/trunk/auto-youtube-importer.php
r3055857 r3136099 3 3 * Plugin Name: Auto YouTube Importer 4 4 * Description: A simple YouTube video importer plugin with automatic / ongoing YouTube sync features. 5 * Version: 1. 0.95 * Version: 1.1.0 6 6 * Author: SecondLineThemes 7 7 * Author URI: https://secondlinethemes.com/ … … 15 15 die; 16 16 17 define( 'YOUTUBE_IMPORTER_SECONDLINE_VERSION', '1. 0.9' );17 define( 'YOUTUBE_IMPORTER_SECONDLINE_VERSION', '1.1.0' ); 18 18 define( "YOUTUBE_IMPORTER_SECONDLINE_BASE_FILE_PATH", __FILE__ ); 19 19 define( "YOUTUBE_IMPORTER_SECONDLINE_BASE_PATH", dirname( YOUTUBE_IMPORTER_SECONDLINE_BASE_FILE_PATH ) ); -
auto-youtube-importer/trunk/lib/action-scheduler/README.md
r2740043 r3136099 3 3 Action Scheduler is a scalable, traceable job queue for background processing large sets of actions in WordPress. It's specially designed to be distributed in WordPress plugins. 4 4 5 Action Scheduler works by triggering an action hook to run at some time in the future. Each hook can be scheduled with unique data, to allow callbacks to perform operations on that data. The hook can also be scheduled to run on one or more occas sions.5 Action Scheduler works by triggering an action hook to run at some time in the future. Each hook can be scheduled with unique data, to allow callbacks to perform operations on that data. The hook can also be scheduled to run on one or more occasions. 6 6 7 7 Think of it like an extension to `do_action()` which adds the ability to delay and repeat a hook. -
auto-youtube-importer/trunk/lib/action-scheduler/action-scheduler.php
r3055857 r3136099 6 6 * Author: Automattic 7 7 * Author URI: https://automattic.com/ 8 * Version: 3. 7.38 * Version: 3.8.1 9 9 * License: GPLv3 10 10 * Requires at least: 6.2 11 * Tested up to: 6. 411 * Tested up to: 6.5 12 12 * Requires PHP: 5.6 13 13 * … … 30 30 */ 31 31 32 if ( ! function_exists( 'action_scheduler_register_3_dot_ 7_dot_3' ) && function_exists( 'add_action' ) ) { // WRCS: DEFINED_VERSION.32 if ( ! function_exists( 'action_scheduler_register_3_dot_8_dot_1' ) && function_exists( 'add_action' ) ) { // WRCS: DEFINED_VERSION. 33 33 34 34 if ( ! class_exists( 'ActionScheduler_Versions', false ) ) { … … 37 37 } 38 38 39 add_action( 'plugins_loaded', 'action_scheduler_register_3_dot_ 7_dot_3', 0, 0 ); // WRCS: DEFINED_VERSION.39 add_action( 'plugins_loaded', 'action_scheduler_register_3_dot_8_dot_1', 0, 0 ); // WRCS: DEFINED_VERSION. 40 40 41 41 // phpcs:disable Generic.Functions.OpeningFunctionBraceKernighanRitchie.ContentAfterBrace … … 43 43 * Registers this version of Action Scheduler. 44 44 */ 45 function action_scheduler_register_3_dot_ 7_dot_3() { // WRCS: DEFINED_VERSION.45 function action_scheduler_register_3_dot_8_dot_1() { // WRCS: DEFINED_VERSION. 46 46 $versions = ActionScheduler_Versions::instance(); 47 $versions->register( '3. 7.3', 'action_scheduler_initialize_3_dot_7_dot_3' ); // WRCS: DEFINED_VERSION.47 $versions->register( '3.8.1', 'action_scheduler_initialize_3_dot_8_dot_1' ); // WRCS: DEFINED_VERSION. 48 48 } 49 49 … … 52 52 * Initializes this version of Action Scheduler. 53 53 */ 54 function action_scheduler_initialize_3_dot_ 7_dot_3() { // WRCS: DEFINED_VERSION.54 function action_scheduler_initialize_3_dot_8_dot_1() { // WRCS: DEFINED_VERSION. 55 55 // A final safety check is required even here, because historic versions of Action Scheduler 56 56 // followed a different pattern (in some unusual cases, we could reach this point and the … … 64 64 // Support usage in themes - load this version if no plugin has loaded a version yet. 65 65 if ( did_action( 'plugins_loaded' ) && ! doing_action( 'plugins_loaded' ) && ! class_exists( 'ActionScheduler', false ) ) { 66 action_scheduler_initialize_3_dot_ 7_dot_3(); // WRCS: DEFINED_VERSION.66 action_scheduler_initialize_3_dot_8_dot_1(); // WRCS: DEFINED_VERSION. 67 67 do_action( 'action_scheduler_pre_theme_init' ); 68 68 ActionScheduler_Versions::initialize_latest_version(); -
auto-youtube-importer/trunk/lib/action-scheduler/changelog.txt
r3055857 r3136099 1 1 *** Changelog *** 2 3 = 3.8.1 - 2024-06-20 = 4 * Fix typos. 5 * Improve the messaging in our unidentified action exceptions. 6 7 = 3.8.0 - 2024-05-22 = 8 * Documentation - Fixed typos in perf.md. 9 * Update - We now require WordPress 6.3 or higher. 10 * Update - We now require PHP 7.0 or higher. 11 12 = 3.7.4 - 2024-04-05 = 13 * Give a clear description of how the $unique parameter works. 14 * Preserve the tab field if set. 15 * Tweak - WP 6.5 compatibility. 2 16 3 17 = 3.7.3 - 2024-03-20 = … … 17 31 = 3.7.0 - 2023-11-20 = 18 32 * Important: starting with this release, Action Scheduler follows an L-2 version policy (WordPress, and consequently PHP). 19 * Add extended indexes for hook_status_scheduled_date_gmt and status_s heduled_date_gmt.33 * Add extended indexes for hook_status_scheduled_date_gmt and status_scheduled_date_gmt. 20 34 * Catch and log exceptions thrown when actions can't be created, e.g. under a corrupt database schema. 21 35 * Tweak - WP 6.4 compatibility. … … 112 126 * Dev - ActionScheduler_DBLogger.php PHPCS fixes (props @ovidiul). #768 113 127 * Dev - Fixed phpcs for ActionScheduler_Schedule_Deprecated (props @ovidiul). #762 114 * Dev - Improve actions table indic ies (props @glagonikas). #774 & #777128 * Dev - Improve actions table indices (props @glagonikas). #774 & #777 115 129 * Dev - PHPCS fixes for ActionScheduler_DBStore.php (props @ovidiul). #769 & #778 116 130 * Dev - PHPCS Fixes for ActionScheduler_Abstract_ListTable (props @ovidiul). #763 & #779 -
auto-youtube-importer/trunk/lib/action-scheduler/classes/ActionScheduler_ActionFactory.php
r3055857 r3136099 247 247 * async_unique(), single() or single_unique(), etc. 248 248 * 249 * @internal Not intended for public use, should not be overrid en by subclasses.249 * @internal Not intended for public use, should not be overridden by subclasses. 250 250 * 251 251 * @param array $options { … … 358 358 * Fallback to non-unique action if the store doesn't support unique actions. 359 359 * We try to save the action as unique, accepting that there might be a race condition. 360 * This is likely still better than givin ig up on unique actions entirely.360 * This is likely still better than giving up on unique actions entirely. 361 361 */ 362 362 $existing_action_id = (int) $store->find_action( -
auto-youtube-importer/trunk/lib/action-scheduler/classes/ActionScheduler_AdminView.php
r3055857 r3136099 146 146 # Set thresholds. 147 147 $threshold_seconds = ( int ) apply_filters( 'action_scheduler_pastdue_actions_seconds', DAY_IN_SECONDS ); 148 $thresh hold_min = ( int ) apply_filters( 'action_scheduler_pastdue_actions_min', 1 );148 $threshold_min = ( int ) apply_filters( 'action_scheduler_pastdue_actions_min', 1 ); 149 149 150 150 // Set fallback value for past-due actions count. … … 163 163 'date' => as_get_datetime_object( time() - $threshold_seconds ), 164 164 'status' => ActionScheduler_Store::STATUS_PENDING, 165 'per_page' => $thresh hold_min,165 'per_page' => $threshold_min, 166 166 ); 167 167 … … 172 172 173 173 # Check if past-due actions count is greater than or equal to threshold. 174 $check = ( $num_pastdue_actions >= $thresh hold_min );175 $check = ( bool ) apply_filters( 'action_scheduler_pastdue_actions_check', $check, $num_pastdue_actions, $threshold_seconds, $thresh hold_min );174 $check = ( $num_pastdue_actions >= $threshold_min ); 175 $check = ( bool ) apply_filters( 'action_scheduler_pastdue_actions_check', $check, $num_pastdue_actions, $threshold_seconds, $threshold_min ); 176 176 } 177 177 -
auto-youtube-importer/trunk/lib/action-scheduler/classes/ActionScheduler_QueueCleaner.php
r2953657 r3136099 178 178 /** 179 179 * Mark actions that have been running for more than a given time limit as failed, based on 180 * the assumption some uncat achable and unloggable fatal error occurred during processing.180 * the assumption some uncatchable and unloggable fatal error occurred during processing. 181 181 * 182 182 * When called by ActionScheduler_Abstract_QueueRunner::run_cleanup(), the time limit passed -
auto-youtube-importer/trunk/lib/action-scheduler/classes/ActionScheduler_QueueRunner.php
r2953657 r3136099 123 123 * @see ActionScheduler_AsyncRequest_QueueRunner::handle() 124 124 * 125 * @param string $context Optional identif er for the context in which this action is being processed, e.g. 'WP CLI' or 'WP Cron'125 * @param string $context Optional identifier for the context in which this action is being processed, e.g. 'WP CLI' or 'WP Cron' 126 126 * Generally, this should be capitalised and not localised as it's a proper noun. 127 127 * @return int The number of actions processed. … … 153 153 * 154 154 * @param int $size The maximum number of actions to process in the batch. 155 * @param string $context Optional identif er for the context in which this action is being processed, e.g. 'WP CLI' or 'WP Cron'155 * @param string $context Optional identifier for the context in which this action is being processed, e.g. 'WP CLI' or 'WP Cron' 156 156 * Generally, this should be capitalised and not localised as it's a proper noun. 157 157 * @return int The number of actions processed. -
auto-youtube-importer/trunk/lib/action-scheduler/classes/abstracts/ActionScheduler_Abstract_ListTable.php
r3055857 r3136099 327 327 'page', 328 328 'status', 329 'tab', 329 330 ) 330 331 ); … … 455 456 * Prepares the data to feed WP_Table_List. 456 457 * 457 * This has the core for selecting, sorting and filt ing data. To keep the code simple458 * This has the core for selecting, sorting and filtering data. To keep the code simple 458 459 * its logic is split among many methods (get_items_query_*). 459 460 * … … 544 545 /** 545 546 * Set the data for displaying. It will attempt to unserialize (There is a chance that some columns 546 * are serialized). This can be override in child classes for fu ther data transformation.547 * are serialized). This can be override in child classes for further data transformation. 547 548 * 548 549 * @param array $items Items array. … … 645 646 646 647 /** 647 * Default column formatting, it will escape everythi g for security.648 * Default column formatting, it will escape everything for security. 648 649 * 649 650 * @param array $item The item array. -
auto-youtube-importer/trunk/lib/action-scheduler/classes/abstracts/ActionScheduler_Abstract_QueueRunner.php
r3016907 r3136099 45 45 * 46 46 * @param int $action_id The action ID to process. 47 * @param string $context Optional identif er for the context in which this action is being processed, e.g. 'WP CLI' or 'WP Cron'47 * @param string $context Optional identifier for the context in which this action is being processed, e.g. 'WP CLI' or 'WP Cron' 48 48 * Generally, this should be capitalised and not localised as it's a proper noun. 49 49 */ … … 52 52 set_error_handler( 53 53 /** 54 * Temporary error handler which can catch errors and convert them into exceptions. This facili ates more54 * Temporary error handler which can catch errors and convert them into exceptions. This facilitates more 55 55 * robust error handling across all supported PHP versions. 56 56 * … … 365 365 * 366 366 * @author Jeremy Pry 367 * @param string $context Optional identif er for the context in which this action is being processed, e.g. 'WP CLI' or 'WP Cron'367 * @param string $context Optional identifier for the context in which this action is being processed, e.g. 'WP CLI' or 'WP Cron' 368 368 * Generally, this should be capitalised and not localised as it's a proper noun. 369 369 * @return int The number of actions processed. -
auto-youtube-importer/trunk/lib/action-scheduler/classes/abstracts/ActionScheduler_Abstract_RecurringSchedule.php
r2740043 r3136099 26 26 27 27 /** 28 * The recurr ance between each time an action is run using this schedule.28 * The recurrence between each time an action is run using this schedule. 29 29 * Used to calculate the start date & time. Can be a number of seconds, in the 30 30 * case of ActionScheduler_IntervalSchedule, or a cron expression, as in the … … 37 37 /** 38 38 * @param DateTime $date The date & time to run the action. 39 * @param mixed $recurrence The data used to determine the schedule's recurr ance.39 * @param mixed $recurrence The data used to determine the schedule's recurrence. 40 40 * @param DateTime|null $first (Optional) The date & time the first instance of this interval schedule ran. Default null, meaning this is the first instance. 41 41 */ -
auto-youtube-importer/trunk/lib/action-scheduler/classes/abstracts/ActionScheduler_Logger.php
r2953657 r3136099 136 136 /** 137 137 * @param string $action_id 138 * @param Exception|NULL $exception The exception which occur ed when fetching the action. NULL by default for backward compatibility.138 * @param Exception|NULL $exception The exception which occurred when fetching the action. NULL by default for backward compatibility. 139 139 * 140 140 * @return ActionScheduler_LogEntry[] -
auto-youtube-importer/trunk/lib/action-scheduler/classes/abstracts/ActionScheduler_Store.php
r3055857 r3136099 249 249 250 250 /** 251 * Get the time MySQL format ed date/time string for an action's (next) scheduled date.251 * Get the time MySQL formatted date/time string for an action's (next) scheduled date. 252 252 * 253 253 * @param ActionScheduler_Action $action … … 266 266 267 267 /** 268 * Get the time MySQL format ed date/time string for an action's (next) scheduled date.268 * Get the time MySQL formatted date/time string for an action's (next) scheduled date. 269 269 * 270 270 * @param ActionScheduler_Action $action -
auto-youtube-importer/trunk/lib/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php
r3055857 r3136099 651 651 if ( false === $updated ) { 652 652 /* translators: %s: action ID */ 653 throw new \InvalidArgumentException( sprintf( __( 'Unidentified action %s ', 'action-scheduler' ), $action_id ) );653 throw new \InvalidArgumentException( sprintf( __( 'Unidentified action %s: we were unable to cancel this action. It may may have been deleted by another process.', 'action-scheduler' ), $action_id ) ); 654 654 } 655 655 do_action( 'action_scheduler_canceled_action', $action_id ); … … 743 743 $deleted = $wpdb->delete( $wpdb->actionscheduler_actions, array( 'action_id' => $action_id ), array( '%d' ) ); 744 744 if ( empty( $deleted ) ) { 745 throw new \InvalidArgumentException( sprintf( __( 'Unidentified action %s', 'action-scheduler' ), $action_id ) ); //phpcs:ignore WordPress.WP.I18n.MissingTranslatorsComment 745 /* translators: %s is the action ID */ 746 throw new \InvalidArgumentException( sprintf( __( 'Unidentified action %s: we were unable to delete this action. It may may have been deleted by another process.', 'action-scheduler' ), $action_id ) ); 746 747 } 747 748 do_action( 'action_scheduler_deleted_action', $action_id ); … … 774 775 $record = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM {$wpdb->actionscheduler_actions} WHERE action_id=%d", $action_id ) ); 775 776 if ( empty( $record ) ) { 776 throw new \InvalidArgumentException( sprintf( __( 'Unidentified action %s', 'action-scheduler' ), $action_id ) ); //phpcs:ignore WordPress.WP.I18n.MissingTranslatorsComment 777 /* translators: %s is the action ID */ 778 throw new \InvalidArgumentException( sprintf( __( 'Unidentified action %s: we were unable to determine the date of this action. It may may have been deleted by another process.', 'action-scheduler' ), $action_id ) ); 777 779 } 778 780 if ( self::STATUS_PENDING === $record->status ) { … … 1084 1086 ); 1085 1087 if ( empty( $updated ) ) { 1086 throw new \InvalidArgumentException( sprintf( __( 'Unidentified action %s', 'action-scheduler' ), $action_id ) ); //phpcs:ignore WordPress.WP.I18n.MissingTranslatorsComment 1088 /* translators: %s is the action ID */ 1089 throw new \InvalidArgumentException( sprintf( __( 'Unidentified action %s: we were unable to mark this action as having failed. It may may have been deleted by another process.', 'action-scheduler' ), $action_id ) ); 1087 1090 } 1088 1091 } … … 1142 1145 ); 1143 1146 if ( empty( $updated ) ) { 1144 throw new \InvalidArgumentException( sprintf( __( 'Unidentified action %s', 'action-scheduler' ), $action_id ) ); //phpcs:ignore WordPress.WP.I18n.MissingTranslatorsComment 1147 /* translators: %s is the action ID */ 1148 throw new \InvalidArgumentException( sprintf( __( 'Unidentified action %s: we were unable to mark this action as having completed. It may may have been deleted by another process.', 'action-scheduler' ), $action_id ) ); 1145 1149 } 1146 1150 -
auto-youtube-importer/trunk/lib/action-scheduler/classes/data-stores/ActionScheduler_wpPostStore.php
r3055857 r3136099 513 513 if ( empty( $post ) || ( self::POST_TYPE !== $post->post_type ) ) { 514 514 /* translators: %s is the action ID */ 515 throw new InvalidArgumentException( sprintf( __( 'Unidentified action %s ', 'action-scheduler' ), $action_id ) );515 throw new InvalidArgumentException( sprintf( __( 'Unidentified action %s: we were unable to cancel this action. It may may have been deleted by another process.', 'action-scheduler' ), $action_id ) ); 516 516 } 517 517 do_action( 'action_scheduler_canceled_action', $action_id ); … … 532 532 if ( empty( $post ) || ( self::POST_TYPE !== $post->post_type ) ) { 533 533 /* translators: %s is the action ID */ 534 throw new InvalidArgumentException( sprintf( __( 'Unidentified action %s ', 'action-scheduler' ), $action_id ) );534 throw new InvalidArgumentException( sprintf( __( 'Unidentified action %s: we were unable to delete this action. It may may have been deleted by another process.', 'action-scheduler' ), $action_id ) ); 535 535 } 536 536 do_action( 'action_scheduler_deleted_action', $action_id ); … … 562 562 if ( empty( $post ) || ( self::POST_TYPE !== $post->post_type ) ) { 563 563 /* translators: %s is the action ID */ 564 throw new InvalidArgumentException( sprintf( __( 'Unidentified action %s ', 'action-scheduler' ), $action_id ) );564 throw new InvalidArgumentException( sprintf( __( 'Unidentified action %s: we were unable to determine the date of this action. It may may have been deleted by another process.', 'action-scheduler' ), $action_id ) ); 565 565 } 566 566 if ( 'publish' === $post->post_status ) { … … 985 985 if ( empty( $post ) || ( self::POST_TYPE !== $post->post_type ) ) { 986 986 /* translators: %s is the action ID */ 987 throw new InvalidArgumentException( sprintf( __( 'Unidentified action %s ', 'action-scheduler' ), $action_id ) );987 throw new InvalidArgumentException( sprintf( __( 'Unidentified action %s: we were unable to mark this action as having completed. It may may have been deleted by another process.', 'action-scheduler' ), $action_id ) ); 988 988 } 989 989 add_filter( 'wp_insert_post_data', array( $this, 'filter_insert_post_data' ), 10, 1 ); -
auto-youtube-importer/trunk/lib/action-scheduler/classes/data-stores/ActionScheduler_wpPostStore_PostTypeRegistrar.php
r2740043 r3136099 18 18 $args = array( 19 19 'label' => __( 'Scheduled Actions', 'action-scheduler' ), 20 'description' => __( 'Scheduled actions are hooks triggered on a ce tain date and time.', 'action-scheduler' ),20 'description' => __( 'Scheduled actions are hooks triggered on a certain date and time.', 'action-scheduler' ), 21 21 'public' => false, 22 22 'map_meta_cap' => true, -
auto-youtube-importer/trunk/lib/action-scheduler/classes/migration/Config.php
r2740043 r3136099 66 66 67 67 /** 68 * Get the configured source log er.68 * Get the configured source logger. 69 69 * 70 70 * @return ActionScheduler_Logger -
auto-youtube-importer/trunk/lib/action-scheduler/classes/schedules/ActionScheduler_CronSchedule.php
r2740043 r3136099 59 59 * Serialize cron schedules with data required prior to AS 3.0.0 60 60 * 61 * Prior to Action Scheduler 3.0.0, rec curing schedules used different property names to61 * Prior to Action Scheduler 3.0.0, recurring schedules used different property names to 62 62 * refer to equivalent data. For example, ActionScheduler_IntervalSchedule::start_timestamp 63 63 * was the same as ActionScheduler_SimpleSchedule::timestamp. Action Scheduler 3.0.0 -
auto-youtube-importer/trunk/lib/action-scheduler/classes/schedules/ActionScheduler_IntervalSchedule.php
r2740043 r3136099 39 39 * Serialize interval schedules with data required prior to AS 3.0.0 40 40 * 41 * Prior to Action Scheduler 3.0.0, rec curing schedules used different property names to41 * Prior to Action Scheduler 3.0.0, recurring schedules used different property names to 42 42 * refer to equivalent data. For example, ActionScheduler_IntervalSchedule::start_timestamp 43 43 * was the same as ActionScheduler_SimpleSchedule::timestamp. Action Scheduler 3.0.0 -
auto-youtube-importer/trunk/lib/action-scheduler/deprecated/ActionScheduler_AdminView_Deprecated.php
r2740043 r3136099 101 101 * 102 102 * The WordPress human_time_diff() function only calculates the time difference to one degree, meaning 103 * even if an action is 1 day and 11 hours away, it will display "1 day". This func iton goes one step103 * even if an action is 1 day and 11 hours away, it will display "1 day". This function goes one step 104 104 * further to display two degrees of accuracy. 105 105 * -
auto-youtube-importer/trunk/lib/action-scheduler/functions.php
r3016907 r3136099 12 12 * @param array $args Arguments to pass when the hook triggers. 13 13 * @param string $group The group to assign this job to. 14 * @param bool $unique Whether the action should be unique. 14 * @param bool $unique Whether the action should be unique. It will not be scheduled if another pending or running action has the same hook and group parameters. 15 15 * @param int $priority Lower values take precedence over higher values. Defaults to 10, with acceptable values falling in the range 0-255. 16 16 * … … 61 61 * @param array $args Arguments to pass when the hook triggers. 62 62 * @param string $group The group to assign this job to. 63 * @param bool $unique Whether the action should be unique. 63 * @param bool $unique Whether the action should be unique. It will not be scheduled if another pending or running action has the same hook and group parameters. 64 64 * @param int $priority Lower values take precedence over higher values. Defaults to 10, with acceptable values falling in the range 0-255. 65 65 * … … 113 113 * @param array $args Arguments to pass when the hook triggers. 114 114 * @param string $group The group to assign this job to. 115 * @param bool $unique Whether the action should be unique. 115 * @param bool $unique Whether the action should be unique. It will not be scheduled if another pending or running action has the same hook and group parameters. 116 116 * @param int $priority Lower values take precedence over higher values. Defaults to 10, with acceptable values falling in the range 0-255. 117 117 * … … 198 198 * @param array $args Arguments to pass when the hook triggers. 199 199 * @param string $group The group to assign this job to. 200 * @param bool $unique Whether the action should be unique. 200 * @param bool $unique Whether the action should be unique. It will not be scheduled if another pending or running action has the same hook and group parameters. 201 201 * @param int $priority Lower values take precedence over higher values. Defaults to 10, with acceptable values falling in the range 0-255. 202 202 * -
auto-youtube-importer/trunk/lib/action-scheduler/readme.txt
r3055857 r3136099 2 2 Contributors: Automattic, wpmuguru, claudiosanches, peterfabian1000, vedjain, jamosova, obliviousharmony, konamiman, sadowski, royho, barryhughes-1 3 3 Tags: scheduler, cron 4 Stable tag: 3. 7.34 Stable tag: 3.8.1 5 5 License: GPLv3 6 Requires at least: 6. 26 Requires at least: 6.3 7 7 Tested up to: 6.5 8 Requires PHP: 5.68 Requires PHP: 7.0 9 9 10 10 Action Scheduler - Job Queue for WordPress … … 14 14 Action Scheduler is a scalable, traceable job queue for background processing large sets of actions in WordPress. It's specially designed to be distributed in WordPress plugins. 15 15 16 Action Scheduler works by triggering an action hook to run at some time in the future. Each hook can be scheduled with unique data, to allow callbacks to perform operations on that data. The hook can also be scheduled to run on one or more occas sions.16 Action Scheduler works by triggering an action hook to run at some time in the future. Each hook can be scheduled with unique data, to allow callbacks to perform operations on that data. The hook can also be scheduled to run on one or more occasions. 17 17 18 18 Think of it like an extension to `do_action()` which adds the ability to delay and repeat a hook. … … 47 47 48 48 == Changelog == 49 50 = 3.8.1 - 2024-06-20 = 51 * Fix typos. 52 * Improve the messaging in our unidentified action exceptions. 53 54 = 3.8.0 - 2024-05-22 = 55 * Documentation - Fixed typos in perf.md. 56 * Update - We now require WordPress 6.3 or higher. 57 * Update - We now require PHP 7.0 or higher. 58 59 = 3.7.4 - 2024-04-05 = 60 * Give a clear description of how the $unique parameter works. 61 * Preserve the tab field if set. 62 * Tweak - WP 6.5 compatibility. 49 63 50 64 = 3.7.3 - 2024-03-20 = … … 64 78 = 3.7.0 - 2023-11-20 = 65 79 * Important: starting with this release, Action Scheduler follows an L-2 version policy (WordPress, and consequently PHP). 66 * Add extended indexes for hook_status_scheduled_date_gmt and status_s heduled_date_gmt.80 * Add extended indexes for hook_status_scheduled_date_gmt and status_scheduled_date_gmt. 67 81 * Catch and log exceptions thrown when actions can't be created, e.g. under a corrupt database schema. 68 82 * Tweak - WP 6.4 compatibility. … … 159 173 * Dev - ActionScheduler_DBLogger.php PHPCS fixes (props @ovidiul). #768 160 174 * Dev - Fixed phpcs for ActionScheduler_Schedule_Deprecated (props @ovidiul). #762 161 * Dev - Improve actions table indic ies (props @glagonikas). #774 & #777175 * Dev - Improve actions table indices (props @glagonikas). #774 & #777 162 176 * Dev - PHPCS fixes for ActionScheduler_DBStore.php (props @ovidiul). #769 & #778 163 177 * Dev - PHPCS Fixes for ActionScheduler_Abstract_ListTable (props @ovidiul). #763 & #779 -
auto-youtube-importer/trunk/lib/action-scheduler/vendor/autoload.php
r3016907 r3136099 10 10 require_once __DIR__ . '/composer/autoload_real.php'; 11 11 12 return ComposerAutoloaderInit e6c715793b91c2adf2250e9fbbd8da83::getLoader();12 return ComposerAutoloaderInit0ed398af1bd918658290810d69e2ba71::getLoader(); -
auto-youtube-importer/trunk/lib/action-scheduler/vendor/composer/autoload_real.php
r3016907 r3136099 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit e6c715793b91c2adf2250e9fbbd8da835 class ComposerAutoloaderInit0ed398af1bd918658290810d69e2ba71 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit e6c715793b91c2adf2250e9fbbd8da83', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInit0ed398af1bd918658290810d69e2ba71', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInit e6c715793b91c2adf2250e9fbbd8da83', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInit0ed398af1bd918658290810d69e2ba71', 'loadClassLoader')); 30 30 31 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInit e6c715793b91c2adf2250e9fbbd8da83::getInitializer($loader));32 call_user_func(\Composer\Autoload\ComposerStaticInit0ed398af1bd918658290810d69e2ba71::getInitializer($loader)); 33 33 34 34 $loader->register(true); -
auto-youtube-importer/trunk/lib/action-scheduler/vendor/composer/autoload_static.php
r3016907 r3136099 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit e6c715793b91c2adf2250e9fbbd8da837 class ComposerStaticInit0ed398af1bd918658290810d69e2ba71 8 8 { 9 9 public static $classMap = array ( … … 14 14 { 15 15 return \Closure::bind(function () use ($loader) { 16 $loader->classMap = ComposerStaticInit e6c715793b91c2adf2250e9fbbd8da83::$classMap;16 $loader->classMap = ComposerStaticInit0ed398af1bd918658290810d69e2ba71::$classMap; 17 17 18 18 }, null, ClassLoader::class); -
auto-youtube-importer/trunk/lib/action-scheduler/vendor/composer/installed.php
r3016907 r3136099 2 2 'root' => array( 3 3 'name' => 'woocommerce/action-scheduler', 4 'pretty_version' => 'dev-release/3. 7.1',5 'version' => 'dev-release/3. 7.1',6 'reference' => ' bdaecb016e0358065a8bf76a41fdd60772cacaa5',4 'pretty_version' => 'dev-release/3.8.1', 5 'version' => 'dev-release/3.8.1', 6 'reference' => 'e331b534d7de10402d7545a0de50177b874c0779', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 'woocommerce/action-scheduler' => array( 14 'pretty_version' => 'dev-release/3. 7.1',15 'version' => 'dev-release/3. 7.1',16 'reference' => ' bdaecb016e0358065a8bf76a41fdd60772cacaa5',14 'pretty_version' => 'dev-release/3.8.1', 15 'version' => 'dev-release/3.8.1', 16 'reference' => 'e331b534d7de10402d7545a0de50177b874c0779', 17 17 'type' => 'wordpress-plugin', 18 18 'install_path' => __DIR__ . '/../../', -
auto-youtube-importer/trunk/readme.txt
r3055857 r3136099 2 2 Contributors: secondlinethemes 3 3 Donate link: https://secondlinethemes.com/ 4 Tags: YouTube, import, vlog, feed, video, feed, channel, channels, playlist, playlists, episodes, embed, videos, sync4 Tags: YouTube, import, sync, video, channel 5 5 Requires at least: 4.8 6 Tested up to: 6. 56 Tested up to: 6.6 7 7 Requires PHP: 7.1 8 Stable tag: 1. 0.98 Stable tag: 1.1.0 9 9 License: GPLv3 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 75 75 == Changelog == 76 76 77 = 1.1.0 = 78 * Update: Action Scheduler version. 79 77 80 = 1.0.9 = 78 81 * Update: Action Scheduler version.
Note: See TracChangeset
for help on using the changeset viewer.