diff --git a/class/class-mainwp-backup.php b/class/class-mainwp-backup.php index fdc9f9f..3d09b6d 100644 --- a/class/class-mainwp-backup.php +++ b/class/class-mainwp-backup.php @@ -161,6 +161,13 @@ class MainWP_Backup { $dirs = MainWP_Helper::get_mainwp_dir( 'backup' ); $backupdir = $dirs[0]; if ( ! defined( 'PCLZIP_TEMPORARY_DIR' ) ) { + + /** + * Defines PCLZIP temporary directory. + * + * @const ( string ) Temporary backup directory. + * @source https://code-reference.mainwp.com/classes/MainWP.Child.MainWP_Backup.html + */ define( 'PCLZIP_TEMPORARY_DIR', $backupdir ); } diff --git a/class/class-mainwp-child-back-up-wordpress.php b/class/class-mainwp-child-back-up-wordpress.php index 5aeb044..600002c 100644 --- a/class/class-mainwp-child-back-up-wordpress.php +++ b/class/class-mainwp-child-back-up-wordpress.php @@ -1148,7 +1148,7 @@ class MainWP_Child_Back_Up_WordPress { } /** - * Remove exclusoin rule. + * Remove exclusion rule. * * @used-by MainWP_Child_Back_Up_WordPress::action() Fire off certain BackUpWordPress plugin actions. * diff --git a/class/class-mainwp-child-plugins-check.php b/class/class-mainwp-child-plugins-check.php index da4f9d2..93a7e07 100644 --- a/class/class-mainwp-child-plugins-check.php +++ b/class/class-mainwp-child-plugins-check.php @@ -6,7 +6,7 @@ * * @package MainWP\Child * - * Credits + * @Credits * * Plugin-Name: Vendi Abandoned Plugin Check * Plugin URI: https://wordpress.org/plugins/vendi-abandoned-plugin-check/ @@ -20,7 +20,7 @@ namespace MainWP\Child; /** * Class MainWP_Child_Plugins_Check * - * Check if pugins have been abandoned. + * Check if plugins have been abandoned. */ class MainWP_Child_Plugins_Check { @@ -317,6 +317,13 @@ class MainWP_Child_Plugins_Check { } if ( ! defined( 'DAY_IN_SECONDS' ) ) { + + /** + * Defines days in seconds. + * + * @const ( string ) Default: true. + * @source https://code-reference.mainwp.com/classes/MainWP.Child.MainWP_Child_Plugins_Check.html + */ define( 'DAY_IN_SECONDS', 24 * 60 * 60 ); } diff --git a/class/class-mainwp-child-themes-check.php b/class/class-mainwp-child-themes-check.php index d9af1bb..bf373d4 100644 --- a/class/class-mainwp-child-themes-check.php +++ b/class/class-mainwp-child-themes-check.php @@ -287,6 +287,13 @@ class MainWP_Child_Themes_Check { } if ( ! defined( 'DAY_IN_SECONDS' ) ) { + + /** + * Defines days in seconds. + * + * @const ( string ) Default: true. + * @source https://code-reference.mainwp.com/classes/MainWP.Child.MainWP_Child_Themes_Check.html + */ define( 'DAY_IN_SECONDS', 24 * 60 * 60 ); } diff --git a/class/class-mainwp-child.php b/class/class-mainwp-child.php index 0152244..bfbcdde 100644 --- a/class/class-mainwp-child.php +++ b/class/class-mainwp-child.php @@ -116,6 +116,7 @@ class MainWP_Child { */ public function load_all_options() { + /** @global object $wpdb WordPress object. */ global $wpdb; if ( ! defined( 'WP_INSTALLING' ) || ! is_multisite() ) { @@ -248,7 +249,15 @@ class MainWP_Child { // Register does not require auth, so we register here. if ( isset( $_POST['function'] ) && 'register' === $_POST['function'] ) { + + /** + * Checks whether cron is in progress. + * + * @const ( bool ) Default: true + * @source https://code-reference.mainwp.com/classes/MainWP.Child.MainWP_Child.html + */ define( 'DOING_CRON', true ); + MainWP_Utility::fix_for_custom_themes(); MainWP_Connect::instance()->register_site(); // register the site and exit. } diff --git a/class/class-mainwp-helper.php b/class/class-mainwp-helper.php index c2b612d..5341754 100644 --- a/class/class-mainwp-helper.php +++ b/class/class-mainwp-helper.php @@ -213,8 +213,22 @@ class MainWP_Helper { ob_end_clean(); if ( empty( $creds ) ) { if ( ! defined( 'MAINWP_SAVE_FS_METHOD' ) ) { + + /** + * Defines save file system method. + * + * @const ( string ) Defined save file system method. + * @source https://code-reference.mainwp.com/classes/MainWP.Child.MainWP_Helper.html + */ define( 'MAINWP_SAVE_FS_METHOD', get_filesystem_method() ); } + + /** + * Defines file system method. + * + * @const ( string ) Defined file system method. + * @source https://code-reference.mainwp.com/classes/MainWP.Child.MainWP_Helper.html + */ define( 'FS_METHOD', 'direct' ); } $init = \WP_Filesystem( $creds ); diff --git a/class/class-mainwp-wordpress-seo.php b/class/class-mainwp-wordpress-seo.php index 17bf083..32e33b0 100644 --- a/class/class-mainwp-wordpress-seo.php +++ b/class/class-mainwp-wordpress-seo.php @@ -171,6 +171,13 @@ class MainWP_WordPress_SEO { $upload_dir = wp_upload_dir(); if ( ! defined( 'DIRECTORY_SEPARATOR' ) ) { + + /** + * Defines reusable directory separator. + * + * @const ( string ) Directory separator. + * @source https://code-reference.mainwp.com/classes/MainWP.Dashboard.MainWP_WordPress_SEO.html + */ define( 'DIRECTORY_SEPARATOR', '/' ); } $p_path = $upload_dir['basedir'] . DIRECTORY_SEPARATOR . 'wpseo-import' . DIRECTORY_SEPARATOR; diff --git a/mainwp-child.php b/mainwp-child.php index 205007c..f0e740a 100644 --- a/mainwp-child.php +++ b/mainwp-child.php @@ -20,13 +20,19 @@ require_once ABSPATH . 'wp-includes' . DIRECTORY_SEPARATOR . 'version.php'; // Version information from WordPress. /** - * Define MainWP Child Plugin Debug Mode. Default: false. + * Define MainWP Child Plugin Debug Mode. + * + * @const ( bool ) Whether or not MainWP Child is in debug mode. Default: false. + * @source https://code-reference.mainwp.com/classes/MainWP.Child.MainWP_Child.html */ define( 'MAINWP_CHILD_DEBUG', false ); if ( ! defined( 'MAINWP_CHILD_FILE' ) ) { /** * Define MainWP Child Plugin absolute full path and filename of this file. + * + * @const ( string ) Defined MainWP Child file path. + * @source https://code-reference.mainwp.com/classes/MainWP.Child.MainWP_Child.html */ define( 'MAINWP_CHILD_FILE', __FILE__ ); } @@ -34,6 +40,9 @@ if ( ! defined( 'MAINWP_CHILD_FILE' ) ) { if ( ! defined( 'MAINWP_CHILD_PLUGIN_DIR' ) ) { /** * Define MainWP Child Plugin Directory. + * + * @const ( string ) Defined MainWP Child Plugin Directory. + * @source https://code-reference.mainwp.com/classes/MainWP.Child.MainWP_Child.html */ define( 'MAINWP_CHILD_PLUGIN_DIR', plugin_dir_path( MAINWP_CHILD_FILE ) ); } @@ -41,6 +50,9 @@ if ( ! defined( 'MAINWP_CHILD_PLUGIN_DIR' ) ) { if ( ! defined( 'MAINWP_CHILD_URL' ) ) { /** * Define MainWP Child Plugin URL. + * + * @const ( string ) Defined MainWP Child Plugin URL. + * @source https://code-reference.mainwp.com/classes/MainWP.Child.MainWP_Child.html */ define( 'MAINWP_CHILD_URL', plugin_dir_url( MAINWP_CHILD_FILE ) ); }