Skip to content

Commit

Permalink
corrected some warnings in JigsawPermalinks -- up version number
Browse files Browse the repository at this point in the history
  • Loading branch information
Jared authored and Jared committed Aug 9, 2015
1 parent 660e3da commit f0d0544
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions jigsaw-permalinks.php
Original file line number Diff line number Diff line change
Expand Up @@ -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%';
}
}
Expand Down
2 changes: 1 addition & 1 deletion jigsaw.php
Original file line number Diff line number Diff line change
Expand Up @@ -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/
*/

Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f0d0544

Please sign in to comment.