Fix failing tests: Update install-wp-tests.sh, Cypress commands, and GitHub Actions workflows

This commit is contained in:
2025-04-23 04:26:06 +01:00
parent bb31e0e934
commit b1966067ea
20 changed files with 263 additions and 106 deletions

View File

@@ -6,10 +6,10 @@
* Extend this file or create additional classes in this directory
* to implement multisite features for your plugin.
*
* @package WPPluginStarterTemplate
* @package WP_Plugin_Starter_Template_For_AI_Coding
*/
namespace WPALLSTARS\PluginStarterTemplate\Multisite;
namespace WP_Plugin_Starter_Template_For_AI_Coding\Multisite;
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
@@ -31,6 +31,21 @@ class Multisite {
// Add your multisite-specific initialization here.
}
/**
* Initialize hooks.
*/
public function initialize_hooks() {
add_action( 'network_admin_menu', array( $this, 'add_network_menu' ) );
}
/**
* Add network admin menu.
*/
public function add_network_menu() {
// This is a placeholder method.
// In a real implementation, you would add network admin menu items here.
}
/**
* Example method for multisite functionality.
*
@@ -43,7 +58,7 @@ class Multisite {
/**
* Example method to get all sites in the network.
*
* @return array An empty array as this is just a placeholder.
* @return array An array of sites or an empty array if not in multisite.
*/
public function get_network_sites() {
// This is just a placeholder method.