diff --git a/jigsaw-permalinks.php b/jigsaw-permalinks.php index e1c5487..fe2e9a4 100644 --- a/jigsaw-permalinks.php +++ b/jigsaw-permalinks.php @@ -4,8 +4,10 @@ class JigsawPermalinks { public static function set_author_base( $base, $with_front = true ) { global $wp_rewrite; - $wp_rewrite->author_base = $base; - if ( !$with_front ) { + if ( $wp_rewrite ) { + $wp_rewrite->author_base = $base; + } + if ( !$with_front && $wp_rewrite ) { $wp_rewrite->author_structure = '/' . $wp_rewrite->author_base. '/%author%'; } } diff --git a/jigsaw.php b/jigsaw.php index b9f0b8c..69e894b 100644 --- a/jigsaw.php +++ b/jigsaw.php @@ -4,7 +4,7 @@ Plugin Name: Jigsaw Description: Simple ways to make admin customizations for WordPress Author: Jared Novack + Upstatement - Version: 0.5 + Version: 0.5.1 Author URI: http://jigsaw.upstatement.com/ */ diff --git a/readme.txt b/readme.txt index 82bb3cb..8bfa7ca 100644 --- a/readme.txt +++ b/readme.txt @@ -2,7 +2,7 @@ Contributors: jarednova Tags: admin, configuration Requires at least: 3.7 -Stable tag: 0.5 +Stable tag: 0.5.1 Tested up to: 4.0 PHP version: 5.3.0 or greater License: GPLv2 or later