Skip to content

Commit

Permalink
Prep 1.2.1 tag
Browse files Browse the repository at this point in the history
Tagging 1.2.1 for launche in the WP.org repository.
  • Loading branch information
Tim Moore committed Sep 24, 2013
1 parent 4be1d1c commit d5cd1f1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
7 changes: 5 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
=== Rewrite Rules Inspector ===
Contributors: danielbachhuber, automattic
Contributors: danielbachhuber, automattic, tmoorewp
Tags: rewrite rules, tools
Tested up to: 3.5.1
Requires at least: 3.1
Stable tag: 1.2
Stable tag: 1.2.1

Straightforward WordPress admin tool for inspecting your rewrite rules

Expand All @@ -20,6 +20,9 @@ Originally developed for [WordPress.com VIP](http://vip.wordpress.com/)-hosted c

== Changelog ==

= 1.2.1 (Sept. 19, 2013) =
* Fix for strict standards error in declaration of Rewrite_Rules_Inspector_List_Table::single_row(). props @simonhampel

= 1.2 (Jan. 16, 2013) =
* Modify the rewrite rule source with a filter. Props [jeremyfelt](https://github.com/jeremyfelt)

Expand Down
16 changes: 8 additions & 8 deletions rewrite-rules-inspector.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
* Plugin URI: http://wordpress.org/extend/plugins/rewrite-rules-inspector/
* Description: Simple WordPress Admin view for inspecting your rewrite rules
* Author: Daniel Bachhuber, Automattic
* Version: 1.2
* Version: 1.2.1
* Author URI: http://automattic.com/
*/

define( 'REWRITE_RULES_INSPECTOR_VERSION', '1.2' );
define( 'REWRITE_RULES_INSPECTOR_VERSION', '1.2.1' );
define( 'REWRITE_RULES_INSPECTOR_ROOT', dirname( __FILE__ ) );
define( 'REWRITE_RULES_INSPECTOR_FILE_PATH' , REWRITE_RULES_INSPECTOR_ROOT . '/' . basename( __FILE__ ) );

Expand Down Expand Up @@ -130,7 +130,7 @@ function get_rules() {
$rewrite_rules_array = array_reverse( $rewrite_rules_array, true );
foreach( $maybe_missing as $rule => $rewrite ) {
if ( !array_key_exists( $rule, $rewrite_rules_array ) ) {
$rewrite_rules_array[$rule] = array(
$rewrite_rules_array[$rule] = array(
'rewrite' => $rewrite,
'source' => 'missing',
);
Expand Down Expand Up @@ -171,7 +171,7 @@ function get_rules() {

// Return our array of rewrite rules to be used
return $rewrite_rules_array;

}

/**
Expand Down Expand Up @@ -230,7 +230,7 @@ function view_rules() {
</div>

<?php

}

/**
Expand All @@ -246,7 +246,7 @@ function download_rules() {
wp_die( __( 'You do not have permissions to perform this action.' ) );

// Get the rewrite rules and prompt the user to download them
// File is saved as YYYYMMDD.themename.rewriterules.txt
// File is saved as YYYYMMDD.themename.rewriterules.txt
$theme_name = sanitize_key( get_option( 'stylesheet' ) );
$filename = date( 'Ymd' ) . '.' . $theme_name . '.rewriterules.txt';
header( 'Content-Type: text/plain' );
Expand Down Expand Up @@ -359,7 +359,7 @@ function display_tablenav( $which ) {
<?php endif; ?>
<?php
// Prepare the link to download a set of rules
// Link is contingent on the current filter state
// Link is contingent on the current filter state
$args = array(
'action' => 'download-rules',
'_wpnonce' => wp_create_nonce( 'download-rules' ),
Expand All @@ -369,7 +369,7 @@ function display_tablenav( $which ) {
else
$args['source'] = 'all';
$args['s'] = !empty( $_GET['s'] ) ? $_GET['s'] : '';

$download_url = add_query_arg( $args, menu_page_url( $plugin_page, false ) );
?>
<a title="<?php _e( 'Download current list of rules as a .txt file', 'rewrite-rules-inspector' ); ?>" class="button-secondary" href="<?php echo esc_url( $download_url ); ?>"><?php _e( 'Download', 'rewrite-rules-inspector' ); ?></a>
Expand Down

0 comments on commit d5cd1f1

Please sign in to comment.