PluginProbe ʕ •ᴥ•ʔ
WP STAGING – WordPress Backups, Restore, Migration & Clone / 4.9.4
WP STAGING – WordPress Backups, Restore, Migration & Clone v4.9.4
4.9.4 4.9.3 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 5 months ago Database 1 month ago AbstractBackupsFinder.php 1 year ago AbstractExtractor.php 3 weeks ago AbstractServiceProvider.php 2 years ago Archiver.php 1 month ago BackupAssets.php 2 months ago BackupContent.php 1 year ago BackupMetadataEditor.php 1 year ago BackupMetadataReader.php 6 months ago BackupSigner.php 7 months ago BackupsDirectoryResolver.php 1 month ago BackupsFinder.php 1 month ago Extractor.php 1 month ago FileBackupService.php 3 weeks ago FileBackupServiceProvider.php 2 years ago ServiceInterface.php 2 years ago TmpBackupCleaner.php 1 month ago ZlibCompressor.php 1 year 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