Fix remaining issues: revert to snake_case for PHP methods, update WordPress Playground CLI command
This commit is contained in:
2
.github/workflows/playground-tests.yml
vendored
2
.github/workflows/playground-tests.yml
vendored
@@ -65,7 +65,7 @@ jobs:
|
||||
- name: Run tests with WordPress Playground
|
||||
run: |
|
||||
# Start WordPress Playground with our blueprint
|
||||
npx @wp-playground/cli start --blueprint playground/blueprint.json --port 8888 &
|
||||
npx @wp-playground/cli server --blueprint playground/blueprint.json --port 8888 --login &
|
||||
|
||||
# Wait for WordPress Playground to be ready
|
||||
echo "Waiting for WordPress Playground to be ready..."
|
||||
|
||||
@@ -36,7 +36,7 @@ class Multisite {
|
||||
*
|
||||
* @return bool Always returns true.
|
||||
*/
|
||||
public function isMultisiteCompatible() {
|
||||
public function is_multisite_compatible() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ class Multisite {
|
||||
*
|
||||
* @return array An empty array as this is just a placeholder.
|
||||
*/
|
||||
public function getNetworkSites() {
|
||||
public function get_network_sites() {
|
||||
// This is just a placeholder method.
|
||||
// In a real implementation, you might use get_sites() or a custom query.
|
||||
return function_exists( 'get_sites' ) ? get_sites( array( 'public' => 1 ) ) : array();
|
||||
|
||||
@@ -83,7 +83,7 @@ class Plugin {
|
||||
*
|
||||
* @return string The plugin version.
|
||||
*/
|
||||
public function getVersion(): string {
|
||||
public function get_version(): string {
|
||||
return $this->version;
|
||||
}
|
||||
|
||||
@@ -92,7 +92,7 @@ class Plugin {
|
||||
*
|
||||
* @return Admin The admin instance.
|
||||
*/
|
||||
public function getAdmin(): Admin {
|
||||
public function get_admin(): Admin {
|
||||
return $this->admin;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user