Skip to content

Commit

Permalink
Corrects Robotstxt class instance callable
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisWinters committed Jul 24, 2020
1 parent 34cbde3 commit 75fc10c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions inc/classes/class-robotstxtmanager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 75fc10c

Please sign in to comment.