REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 1.08 KB
Close
/home/nshryvcy/blissfulnepal.com/wp-content/plugins/wp-rollback/src/Rollbacks/ThemeRollback/Views/ThemeRollbackButton.php
Text
Base64
<?php /** * @package WpRollback\Free\Rollbacks\ThemeRollback\Views */ declare(strict_types=1); namespace WpRollback\Free\Rollbacks\ThemeRollback\Views; use WpRollback\SharedCore\Core\Assets\AssetsManager; use WpRollback\SharedCore\Core\SharedCore; use WpRollback\SharedCore\Rollbacks\Traits\PluginHelpers; /** * Handles theme rollback button functionality and assets. * */ class ThemeRollbackButton { use PluginHelpers; /** * Register and enqueue theme rollback assets. * */ public function __invoke(): void { global $pagenow; if ('themes.php' !== $pagenow) { return; } // Don't enqueue on network admin - themes use table view with action links there if (is_network_admin()) { return; } // Don't enqueue on individual sites if plugin is network activated if ($this->isNetworkActivated()) { return; } $assetsManager = SharedCore::container()->make(AssetsManager::class); $assetsManager->enqueueScript('themesAdmin', [], false); } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 2 × Files: 1
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
components
DIR
-
drwxr-xr-x
2026-05-06 14:06:55
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
resources
DIR
-
drwxr-xr-x
2026-05-06 14:06:55
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ThemeRollbackButton.php
1.08 KB
lrw-r--r--
2026-05-06 14:06:55
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).