From 75fc10cf9d8bde06d03eb2815552f8f3933ea448 Mon Sep 17 00:00:00 2001 From: ChrisWinters Date: Fri, 24 Jul 2020 08:43:41 -0400 Subject: [PATCH] Corrects Robotstxt class instance callable --- inc/classes/class-robotstxtmanager.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/inc/classes/class-robotstxtmanager.php b/inc/classes/class-robotstxtmanager.php index 92cdf6a..1617c5c 100644 --- a/inc/classes/class-robotstxtmanager.php +++ b/inc/classes/class-robotstxtmanager.php @@ -11,31 +11,31 @@ namespace RobotstxtManager; +use RobotstxtManager\Robotstxt; + if ( false === defined( 'ABSPATH' ) ) { exit; } /** - * Plugin Core + * Robots.txt Manager */ final class RobotstxtManager { /** * Init Plugin */ public static function init() { - // Display Robots.txt File. $robotstxt = new Robotstxt(); - /* + /** * Determines whether the current request is for an administrative interface page. - * https://developer.wordpress.org/reference/functions/is_admin/ + * + * @source https://developer.wordpress.org/reference/functions/is_admin/ */ if ( true === is_admin() ) { - // Save Plugin Admin Data. $admin_save = new Plugin_Admin_Save(); $admin_save->init(); - // Display Plugin Admin. $admin = new Plugin_Admin(); $admin->init(); }