REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 1020 B
Close
/home/nshryvcy/radiantskinclinics.org/wp-content/plugins/extendify_old/src/PageCreator/lib/processPatterns.js
Text
Base64
import { getActivePlugins, processPlaceholders } from '@page-creator/api/WPApi'; import { recordPluginActivity } from '@shared/api/DataApi'; export const processPatterns = async (patterns) => { const maxAttempts = 3; const delay = 1000; // 1 second delay between retries const activePlugins = (await getActivePlugins())?.data?.map((path) => path.split('/')[0]) || []; const pluginsActivity = patterns .filter((p) => p.pluginDependency) .map((p) => p.pluginDependency) .filter((p) => !activePlugins.includes(p)); for (const plugin of pluginsActivity) { recordPluginActivity({ slug: plugin, source: 'page-creator', }); } for (let attempt = 1; attempt <= maxAttempts; attempt++) { try { return await processPlaceholders(patterns); } catch (error) { if (attempt === maxAttempts) { console.error( `Failed to process patterns after ${maxAttempts} attempts:`, error, ); return patterns; } await new Promise((resolve) => setTimeout(resolve, delay)); } } };
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 3
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
blocks.js
1.60 KB
lrw-r--r--
2025-05-12 16:42:28
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
pages.js
367 B
lrw-r--r--
2025-03-13 21:10:44
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
processPatterns.js
1020 B
lrw-r--r--
2026-02-19 03:27:14
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).