Fix code quality issues and Markdown formatting
This commit is contained in:
@@ -13,7 +13,7 @@ namespace WPALLSTARS\PluginStarterTemplate\Multisite;
|
||||
|
||||
// Exit if accessed directly.
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -23,31 +23,31 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||
*/
|
||||
class Multisite {
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*/
|
||||
public function __construct() {
|
||||
// This is just a placeholder class.
|
||||
// Add your multisite-specific initialization here.
|
||||
}
|
||||
/**
|
||||
* Constructor.
|
||||
*/
|
||||
public function __construct() {
|
||||
// This is just a placeholder class.
|
||||
// Add your multisite-specific initialization here.
|
||||
}
|
||||
|
||||
/**
|
||||
* Example method for multisite functionality.
|
||||
*
|
||||
* @return bool Always returns true.
|
||||
*/
|
||||
public function is_multisite_compatible() {
|
||||
return true;
|
||||
}
|
||||
/**
|
||||
* Example method for multisite functionality.
|
||||
*
|
||||
* @return bool Always returns true.
|
||||
*/
|
||||
public function is_multisite_compatible() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Example method to get all sites in the network.
|
||||
*
|
||||
* @return array An empty array as this is just a placeholder.
|
||||
*/
|
||||
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 array();
|
||||
}
|
||||
/**
|
||||
* Example method to get all sites in the network.
|
||||
*
|
||||
* @return array An empty array as this is just a placeholder.
|
||||
*/
|
||||
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 array();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user