Browse files

Pointless refactoring.

  • Loading branch information...
1 parent eb91a75 commit 98026e8fc2fe340502b38e9b0aa0f26ccc404408 Michael Sisk committed Dec 2, 2013
Showing with 14 additions and 12 deletions.
  1. +7 −7 -/php/admin.php
  2. +7 −5 webcomic.php
View
14 -/php/admin.php
@@ -41,7 +41,7 @@ public function __construct() {
if ( !self::$config or version_compare( self::$config[ 'version' ], self::$version, '<' ) ) {
add_action( 'admin_init', array( $this, 'activate' ) );
}
-
+
if ( self::$config and version_compare( self::$config[ 'version' ], '4x', '>=' ) ) {
add_action( 'admin_init', array( $this, 'admin_init' ) );
add_action( 'admin_head', array( $this, 'admin_head' ) );
@@ -52,17 +52,17 @@ public function __construct() {
add_filter( 'plugin_row_meta', array( $this, 'plugin_row_meta' ), 10, 3 );
add_filter( 'plugin_action_links', array( $this, 'plugin_action_links' ), 10, 4 );
- require_once self::$dir . '-/php/posts.php'; new WebcomicPosts;
- require_once self::$dir . '-/php/pages.php'; new WebcomicPages;
- require_once self::$dir . '-/php/users.php'; new WebcomicUsers;
- require_once self::$dir . '-/php/media.php'; new WebcomicMedia;
- require_once self::$dir . '-/php/config.php'; new WebcomicConfig;
+ require_once self::$dir . '-/php/posts.php'; new WebcomicPosts;
+ require_once self::$dir . '-/php/pages.php'; new WebcomicPages;
+ require_once self::$dir . '-/php/users.php'; new WebcomicUsers;
+ require_once self::$dir . '-/php/media.php'; new WebcomicMedia;
+ require_once self::$dir . '-/php/config.php'; new WebcomicConfig;
require_once self::$dir . '-/php/commerce.php'; new WebcomicCommerce;
require_once self::$dir . '-/php/taxonomy.php'; new WebcomicTaxonomy;
require_once self::$dir . '-/php/transcripts.php'; new WebcomicTranscripts;
if ( !empty( self::$config[ 'legacy' ] ) ) {
- require_once self::$dir . '-/php/legacy.php'; new WebcomicLegacy;
+ require_once self::$dir . '-/php/legacy.php'; new WebcomicLegacy;
}
}
}
View
12 webcomic.php
@@ -26,7 +26,8 @@
along with this program. If not, see http://www.gnu.org/licenses.
*/
-/** Comic Publishing Power for the Web
+/**
+ * Comic Publishing Power for the Web
*
* @package Webcomic
* @copyright 2008 - 2013 Michael Sisk
@@ -75,7 +76,8 @@ class Webcomic {
*/
protected static $collection = '';
- /** Set class properties and register hooks.
+ /**
+ * Set class properties and register hooks.
*
* @uses Webcomic::$dir
* @uses Webcomic::$url
@@ -161,7 +163,7 @@ public function __construct() {
}
require_once self::$dir . '-/php/tags.php';
- require_once self::$dir . '-/php/widgets.php'; new WebcomicWidget;
+ require_once self::$dir . '-/php/widgets.php'; new WebcomicWidget;
require_once self::$dir . '-/php/shortcodes.php'; new WebcomicShortcode;
}
}
@@ -262,9 +264,9 @@ public function init() {
),
'show_admin_column' => true,
'rewrite' => array(
- 'slug' => $v[ 'slugs' ][ 'character' ],
+ 'slug' => $v[ 'slugs' ][ 'character' ],
'with_front' => false,
- 'ep_mask' => EP_WEBCOMIC_TERM
+ 'ep_mask' => EP_WEBCOMIC_TERM
)
) );
}

0 comments on commit 98026e8

Please sign in to comment.