diff --git a/external-permalinks-redux.php b/external-permalinks-redux.php index 4a210fb4b97f5ad333d028d2c9ecf37ce854ac5d..8295052ce52063811b7f80a99681b71d97a0a300 100644 --- a/external-permalinks-redux.php +++ b/external-permalinks-redux.php @@ -39,7 +39,7 @@ class external_permalinks_redux { */ static function get_instance() { if ( ! isset( self::$instance ) ) - self::$instance = new external_permalinks_redux; + self::$instance = new self; return self::$instance; } @@ -51,7 +51,7 @@ class external_permalinks_redux { * @uses add_filter * @return null */ - function __construct() { + private function __construct() { add_action( 'init', array( $this, 'action_init' ), 0 ); // other init actions may rely on permalinks so filter early add_action( 'admin_init', array( $this, 'action_admin_init' ) ); add_action( 'save_post', array( $this, 'action_save_post' ) );