PluginProbe ʕ •ᴥ•ʔ
WP STAGING – WordPress Backup, Restore, Migration & Clone / 4.9.2
WP STAGING – WordPress Backup, Restore, Migration & Clone v4.9.2
4.9.2 4.9.1 4.9.0 4.8.1 trunk 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.10.0 3.2.0 3.3.1 3.3.2 3.3.3 3.4.1 3.4.3 3.5.0 3.6.0 3.7.1 3.8.0 3.8.1 3.8.2 3.8.3 3.8.4 3.8.5 3.8.6 3.8.7 3.9.0 3.9.1 3.9.2 3.9.3 3.9.4 4.0.0 4.1.0 4.1.1 4.1.2 4.1.3 4.1.4 4.2.0 4.2.1 4.3.0 4.3.1 4.3.2 4.4.0 4.5.0 4.6.0 4.7.0 4.7.1 4.7.2 4.7.3 4.8.0
wp-staging / Backup / Service / BackupAssets.php
wp-staging / Backup / Service Last commit date
Compression 4 months ago Database 2 weeks ago AbstractBackupsFinder.php 1 year ago AbstractExtractor.php 1 day ago AbstractServiceProvider.php 2 years ago Archiver.php 2 weeks ago BackupAssets.php 1 month ago BackupContent.php 1 year ago BackupMetadataEditor.php 1 year ago BackupMetadataReader.php 5 months ago BackupSigner.php 7 months ago BackupsDirectoryResolver.php 2 weeks ago BackupsFinder.php 2 weeks ago Extractor.php 2 weeks ago FileBackupService.php 1 day ago FileBackupServiceProvider.php 2 years ago ServiceInterface.php 2 years ago TmpBackupCleaner.php 2 weeks ago ZlibCompressor.php 11 months ago
BackupAssets.php
48 lines
1 <?php
2
3 namespace WPStaging\Backup\Service;
4
5 use WPStaging\Framework\Assets\Assets;
6
7 /**
8 * Class BackupAssets
9 *
10 * @package WPStaging\Service\Backup
11 */
12 class BackupAssets
13 {
14 /**
15 * @var Assets
16 */
17 private $assets;
18
19 public function __construct(Assets $assets)
20 {
21 $this->assets = $assets;
22 }
23
24 /**
25 * @return void
26 */
27 public function register()
28 {
29 $asset = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? 'js/vendor/resumable.js' : 'js/vendor/resumable.min.js';
30 wp_enqueue_script(
31 "wpstg-resumable",
32 $this->assets->getAssetsUrl($asset),
33 ["wpstg-common"],
34 $this->assets->getAssetsVersion($asset),
35 $this->assets->getScriptLoadingStrategy()
36 );
37
38 $asset = $this->assets->getJsAssetsFileName('backup/wpstg-backup');
39 wp_enqueue_script(
40 "wpstg-backup",
41 $this->assets->getAssetsUrl($asset),
42 ["wpstg-resumable"],
43 $this->assets->getAssetsVersion($asset),
44 $this->assets->getScriptLoadingStrategy()
45 );
46 }
47 }
48