wp-studio 1.7.10 → 1.7.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/{_events-BcapW3eh.mjs → _events-B8xQ_baD.mjs} +4 -5
- package/dist/cli/appdata-D-luHxJU.mjs +19 -0
- package/dist/cli/{certificate-manager-SVYcCL_i.mjs → certificate-manager-v-yNLDFJ.mjs} +134 -15
- package/dist/cli/{delete-D1924O3o.mjs → delete-BG-E-HsW.mjs} +3 -3
- package/dist/cli/{helpers-oQuItT8n.mjs → helpers-CIAgfdq8.mjs} +2 -2
- package/dist/cli/{index-4lan3TI_.mjs → index-Bej4fL6n.mjs} +31 -4
- package/dist/cli/{index-BjzOJKPi.mjs → index-Dhun0W1n.mjs} +90 -52
- package/dist/cli/{index-DRQnCQvM.mjs → index-ul3DeWvy.mjs} +1308 -1109
- package/dist/cli/{list-DOFyyV1f.mjs → list-ck0oK4vb.mjs} +3 -3
- package/dist/cli/{login-BtPZeZ4G.mjs → login-Dz63Zdfn.mjs} +3 -3
- package/dist/cli/{logout-Cr631QzG.mjs → logout-CLUKQeZh.mjs} +2 -3
- package/dist/cli/main.mjs +2 -2
- package/dist/cli/{paths-CqXGLB7R.mjs → paths-D7DniT1Q.mjs} +7 -6
- package/dist/cli/plugin/skills/rank-me-up/SKILL.md +166 -0
- package/dist/cli/plugin/skills/site-spec/SKILL.md +4 -0
- package/dist/cli/process-manager-daemon.mjs +29 -5
- package/dist/cli/{process-manager-ipc-BisO0qtU.mjs → process-manager-ipc-GCdebuBH.mjs} +4 -1
- package/dist/cli/proxy-daemon.mjs +1 -1
- package/dist/cli/{prune-pm-logs-COryxqeo.mjs → prune-pm-logs-Dm_Bwi7l.mjs} +1 -1
- package/dist/cli/{resume-BwDwdJtq.mjs → resume-BSIOJnyM.mjs} +4 -15
- package/dist/cli/{rewrite-wp-cli-post-content-2zlfFnKT.mjs → rewrite-wp-cli-post-content-Beo5_Ojo.mjs} +32 -531
- package/dist/cli/{set-D5eeqHbp.mjs → set-CtDZnARG.mjs} +2 -3
- package/dist/cli/{set-DYnzUz_G.mjs → set-PJvs-Yw5.mjs} +4 -5
- package/dist/cli/{status-DNvMZBqD.mjs → status-DU07aAtD.mjs} +2 -2
- package/dist/cli/well-known-paths-QcSJNi_l.mjs +95 -0
- package/dist/cli/wordpress-server-child.mjs +5 -3
- package/dist/cli/{wp-DD2-QiiP.mjs → wp-_X-h-yuW.mjs} +2 -2
- package/dist/cli/wp-files/latest/available-site-translations.json +1 -1
- package/dist/cli/wp-files/sqlite-database-integration/admin-page.php +1 -2
- package/dist/cli/wp-files/sqlite-database-integration/constants.php +0 -5
- package/dist/cli/wp-files/sqlite-database-integration/load.php +1 -1
- package/dist/cli/wp-files/sqlite-database-integration/readme.txt +6 -3
- package/dist/cli/wp-files/sqlite-database-integration/wp-includes/database/sqlite/class-wp-pdo-mysql-on-sqlite.php +22 -3
- package/dist/cli/wp-files/sqlite-database-integration/wp-includes/database/version.php +1 -1
- package/dist/cli/wp-files/sqlite-database-integration/wp-includes/sqlite/class-wp-sqlite-db.php +41 -89
- package/dist/cli/wp-files/sqlite-database-integration/wp-includes/sqlite/db.php +2 -24
- package/dist/cli/wp-files/sqlite-database-integration/wp-includes/sqlite/install-functions.php +7 -16
- package/package.json +2 -1
- package/dist/cli/well-known-paths-BYA1Bw5o.mjs +0 -214
- package/dist/cli/wp-files/sqlite-database-integration/wp-includes/sqlite/class-wp-sqlite-lexer.php +0 -2575
- package/dist/cli/wp-files/sqlite-database-integration/wp-includes/sqlite/class-wp-sqlite-pdo-user-defined-functions.php +0 -899
- package/dist/cli/wp-files/sqlite-database-integration/wp-includes/sqlite/class-wp-sqlite-query-rewriter.php +0 -343
- package/dist/cli/wp-files/sqlite-database-integration/wp-includes/sqlite/class-wp-sqlite-token.php +0 -327
- package/dist/cli/wp-files/sqlite-database-integration/wp-includes/sqlite/class-wp-sqlite-translator.php +0 -4543
- package/dist/cli/wp-files/sqlite-database-integration/wp-includes/sqlite/php-polyfills.php +0 -68
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
<?php
|
|
2
|
-
/**
|
|
3
|
-
* Polyfills for PHP 8.0 string functions.
|
|
4
|
-
*
|
|
5
|
-
* Implementation follows the Symfony polyfill-php80 package.
|
|
6
|
-
*
|
|
7
|
-
* @see https://github.com/symfony/polyfill-php80
|
|
8
|
-
*
|
|
9
|
-
* @package wp-sqlite-integration
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
if ( ! function_exists( 'str_starts_with' ) ) {
|
|
13
|
-
/**
|
|
14
|
-
* Check if a string starts with a specific substring.
|
|
15
|
-
*
|
|
16
|
-
* @param string $haystack The string to search in.
|
|
17
|
-
* @param string $needle The string to search for.
|
|
18
|
-
*
|
|
19
|
-
* @see https://www.php.net/manual/en/function.str-starts-with
|
|
20
|
-
*
|
|
21
|
-
* @return bool
|
|
22
|
-
*/
|
|
23
|
-
function str_starts_with( string $haystack, string $needle ) {
|
|
24
|
-
return 0 === strncmp( $haystack, $needle, strlen( $needle ) );
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
if ( ! function_exists( 'str_contains' ) ) {
|
|
29
|
-
/**
|
|
30
|
-
* Check if a string contains a specific substring.
|
|
31
|
-
*
|
|
32
|
-
* @param string $haystack The string to search in.
|
|
33
|
-
* @param string $needle The string to search for.
|
|
34
|
-
*
|
|
35
|
-
* @see https://www.php.net/manual/en/function.str-contains
|
|
36
|
-
*
|
|
37
|
-
* @return bool
|
|
38
|
-
*/
|
|
39
|
-
function str_contains( string $haystack, string $needle ) {
|
|
40
|
-
return '' === $needle || false !== strpos( $haystack, $needle );
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
if ( ! function_exists( 'str_ends_with' ) ) {
|
|
45
|
-
/**
|
|
46
|
-
* Check if a string ends with a specific substring.
|
|
47
|
-
*
|
|
48
|
-
* @param string $haystack The string to search in.
|
|
49
|
-
* @param string $needle The string to search for.
|
|
50
|
-
*
|
|
51
|
-
* @see https://www.php.net/manual/en/function.str-ends-with
|
|
52
|
-
*
|
|
53
|
-
* @return bool
|
|
54
|
-
*/
|
|
55
|
-
function str_ends_with( string $haystack, string $needle ) {
|
|
56
|
-
if ( '' === $needle || $needle === $haystack ) {
|
|
57
|
-
return true;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
if ( '' === $haystack ) {
|
|
61
|
-
return false;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
$needle_length = strlen( $needle );
|
|
65
|
-
|
|
66
|
-
return $needle_length <= strlen( $haystack ) && 0 === substr_compare( $haystack, $needle, -$needle_length );
|
|
67
|
-
}
|
|
68
|
-
}
|