PluginProbe ʕ •ᴥ•ʔ
WP STAGING – WordPress Backup, Restore, Migration & Clone / 4.8.1
WP STAGING – WordPress Backup, Restore, Migration & Clone v4.8.1
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 / Framework / Filesystem / PartIdentifier.php
wp-staging / Framework / Filesystem Last commit date
Filters 6 months ago Scanning 5 years ago AbstractFileObject.php 1 year ago AbstractFilesystemScanner.php 2 months ago DebugLogReader.php 2 years ago DirectoryListing.php 5 months ago DiskWriteCheck.php 5 months ago FileObject.php 1 year ago Filesystem.php 6 months ago FilesystemExceptions.php 5 years ago FilesystemScanner.php 2 months ago FilesystemScannerDto.php 1 year ago FilterableDirectoryIterator.php 1 year ago LogCleanup.php 5 months ago LogFiles.php 1 year ago MissingFileException.php 3 years ago OPcache.php 5 months ago PartIdentifier.php 8 months ago PathChecker.php 2 years ago PathIdentifier.php 6 months ago Permissions.php 5 months ago WpUploadsFolderSymlinker.php 2 months ago
PartIdentifier.php
101 lines
1 <?php
2
3 namespace WPStaging\Framework\Filesystem;
4
5 class PartIdentifier
6 {
7 /** @var string */
8 const DATABASE_PART_IDENTIFIER = 'wpstgdb';
9
10 /** @var string */
11 const MU_PLUGIN_PART_IDENTIFIER = 'muplugins';
12
13 /** @var string */
14 const PLUGIN_PART_IDENTIFIER = 'plugins';
15
16 /** @var string */
17 const THEME_PART_IDENTIFIER = 'themes';
18
19 /** @var string */
20 const UPLOAD_PART_IDENTIFIER = 'uploads';
21
22 /** @var string */
23 const LANGUAGE_PART_IDENTIFIER = 'lang';
24
25 /** @var string */
26 const DROPIN_PART_IDENTIFIER = 'dropins';
27
28 /**
29 * @var string
30 * @deprecated use WP_CONTENT_PART_IDENTIFIER instead
31 */
32 const OTHER_WP_CONTENT_PART_IDENTIFIER = 'otherfiles';
33
34 /** @var string */
35 const WP_CONTENT_PART_IDENTIFIER = 'wpcontent';
36
37 /**
38 * @var string
39 * @deprecated use WP_ROOT_PART_IDENTIFIER instead
40 */
41 const OTHER_WP_ROOT_PART_IDENTIFIER = 'rootfiles';
42
43 /** @var string */
44 const WP_ROOT_PART_IDENTIFIER = 'wproot';
45
46 /** @var string */
47 const WP_ROOT_FILES_PART_IDENTIFIER = 'wproot_files';
48
49 /** @var string */
50 const WP_ADMIN_PART_IDENTIFIER = 'wpadmin';
51
52 /** @var string */
53 const WP_INCLUDES_PART_IDENTIFIER = 'wpincludes';
54
55 /** @var string */
56 const DATABASE_PART_SIZE_IDENTIFIER = 'sqlSize';
57
58 /** @var string */
59 const MU_PLUGIN_PART_SIZE_IDENTIFIER = 'mupluginsSize';
60
61 /** @var string */
62 const PLUGIN_PART_SIZE_IDENTIFIER = 'pluginsSize';
63
64 /** @var string */
65 const THEME_PART_SIZE_IDENTIFIER = 'themesSize';
66
67 /** @var string */
68 const UPLOAD_PART_SIZE_IDENTIFIER = 'uploadsSize';
69
70 /** @var string */
71 const LANGUAGE_PART_SIZE_IDENTIFIER = 'langSize';
72
73 /** @var string */
74 const DROPIN_PART_SIZE_IDENTIFIER = 'dropinsSize';
75
76 /** @var string */
77 const WP_CONTENT_PART_SIZE_IDENTIFIER = 'wpcontentSize';
78
79 /** @var string */
80 const WP_ROOT_PART_SIZE_IDENTIFIER = 'wpRootSize';
81
82 /**
83 * List of drop-in files that need to be restored with a rename if their checksums differ.
84 *
85 * These files are specific to third party plugins like W3 Total Cache plugin and similar plugins and must be renamed with a `wpstg_bak.` prefix
86 * if their checksums do not match the expected values. This ensures that any discrepancies or issues with
87 * these files are avoided by preserving the original files with a backup prefix.
88 * @var array
89 */
90 const DROP_IN_FILES = [
91 'object-cache.php',
92 'advanced-cache.php',
93 'db.php',
94 'db-error.php',
95 'install.php',
96 'maintenance.php',
97 'php-error.php',
98 'fatal-error-handler.php',
99 ];
100 }
101