Version Description
- Add check to prevent execution of code if file is directly accessed
- Note compatibility through WP 3.5+
- Update copyright date (2013)
- Move screenshots into repo's assets directory
Download this release
Release Info
| Developer | coffee2code |
| Plugin | |
| Version | 1.7.2 |
| Comparing to | |
| See all releases | |
Code changes from version 1.7.1 to 1.7.2
- admin-post-navigation.php +15 -7
- readme.txt +12 -3
- screenshot-1.png +0 -0
- screenshot-2.png +0 -0
admin-post-navigation.php
CHANGED
|
@@ -2,11 +2,11 @@
|
|
| 2 |
/**
|
| 3 |
* @package Admin_Post_Navigation
|
| 4 |
* @author Scott Reilly
|
| 5 |
-
* @version 1.7.
|
| 6 |
*/
|
| 7 |
/*
|
| 8 |
Plugin Name: Admin Post Navigation
|
| 9 |
-
Version: 1.7.
|
| 10 |
Plugin URI: http://coffee2code.com/wp-plugins/admin-post-navigation/
|
| 11 |
Author: Scott Reilly
|
| 12 |
Author URI: http://coffee2code.com/
|
|
@@ -16,7 +16,7 @@ License: GPLv2 or later
|
|
| 16 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 17 |
Description: Adds links to navigate to the next and previous posts when editing a post in the WordPress admin.
|
| 18 |
|
| 19 |
-
Compatible with WordPress 3.0 through 3.
|
| 20 |
|
| 21 |
=>> Read the accompanying readme.txt file for instructions and documentation.
|
| 22 |
=>> Also, visit the plugin's homepage for additional information and updates.
|
|
@@ -24,10 +24,12 @@ Compatible with WordPress 3.0 through 3.4+.
|
|
| 24 |
|
| 25 |
TODO:
|
| 26 |
* Add screen option allowing user selection of post navigation order
|
|
|
|
|
|
|
| 27 |
*/
|
| 28 |
|
| 29 |
/*
|
| 30 |
-
Copyright (c) 2008-
|
| 31 |
|
| 32 |
This program is free software; you can redistribute it and/or
|
| 33 |
modify it under the terms of the GNU General Public License
|
|
@@ -44,6 +46,8 @@ TODO:
|
|
| 44 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
| 45 |
*/
|
| 46 |
|
|
|
|
|
|
|
| 47 |
if ( is_admin() && ! class_exists( 'c2c_AdminPostNavigation' ) ) :
|
| 48 |
|
| 49 |
class c2c_AdminPostNavigation {
|
|
@@ -59,7 +63,7 @@ class c2c_AdminPostNavigation {
|
|
| 59 |
* @since 1.7
|
| 60 |
*/
|
| 61 |
public static function version() {
|
| 62 |
-
return '1.7.
|
| 63 |
}
|
| 64 |
|
| 65 |
/**
|
|
@@ -76,11 +80,15 @@ class c2c_AdminPostNavigation {
|
|
| 76 |
*
|
| 77 |
*/
|
| 78 |
public static function register_post_page_hooks() {
|
|
|
|
|
|
|
| 79 |
load_plugin_textdomain( 'admin-post-navigation', false, basename( dirname( __FILE__ ) ) . DIRECTORY_SEPARATOR . 'lang' );
|
| 80 |
|
|
|
|
| 81 |
self::$prev_text = __( '← Previous', 'admin-post-navigation' );
|
| 82 |
self::$next_text = __( 'Next →', 'admin-post-navigation' );
|
| 83 |
|
|
|
|
| 84 |
add_action( 'admin_enqueue_scripts', array( __CLASS__, 'add_css' ) );
|
| 85 |
add_action( 'admin_print_footer_scripts', array( __CLASS__, 'add_js' ) );
|
| 86 |
add_action( 'do_meta_boxes', array( __CLASS__, 'do_meta_box' ), 10, 3 );
|
|
@@ -166,14 +174,14 @@ class c2c_AdminPostNavigation {
|
|
| 166 |
* Outputs CSS within style tags
|
| 167 |
*/
|
| 168 |
public static function add_css() {
|
| 169 |
-
echo <<<
|
| 170 |
<style type="text/css">
|
| 171 |
#admin-post-nav {margin-left:20px;}
|
| 172 |
#adminpostnav #admin-post-nav {margin-left:0;}
|
| 173 |
h2 #admin-post-nav {font-size:0.6em;}
|
| 174 |
</style>
|
| 175 |
|
| 176 |
-
|
| 177 |
}
|
| 178 |
|
| 179 |
/**
|
| 2 |
/**
|
| 3 |
* @package Admin_Post_Navigation
|
| 4 |
* @author Scott Reilly
|
| 5 |
+
* @version 1.7.2
|
| 6 |
*/
|
| 7 |
/*
|
| 8 |
Plugin Name: Admin Post Navigation
|
| 9 |
+
Version: 1.7.2
|
| 10 |
Plugin URI: http://coffee2code.com/wp-plugins/admin-post-navigation/
|
| 11 |
Author: Scott Reilly
|
| 12 |
Author URI: http://coffee2code.com/
|
| 16 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 17 |
Description: Adds links to navigate to the next and previous posts when editing a post in the WordPress admin.
|
| 18 |
|
| 19 |
+
Compatible with WordPress 3.0 through 3.5+.
|
| 20 |
|
| 21 |
=>> Read the accompanying readme.txt file for instructions and documentation.
|
| 22 |
=>> Also, visit the plugin's homepage for additional information and updates.
|
| 24 |
|
| 25 |
TODO:
|
| 26 |
* Add screen option allowing user selection of post navigation order
|
| 27 |
+
* Put CSS into enqueuable .css file
|
| 28 |
+
* Put JS into enqueueable .js file
|
| 29 |
*/
|
| 30 |
|
| 31 |
/*
|
| 32 |
+
Copyright (c) 2008-2013 by Scott Reilly (aka coffee2code)
|
| 33 |
|
| 34 |
This program is free software; you can redistribute it and/or
|
| 35 |
modify it under the terms of the GNU General Public License
|
| 46 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
| 47 |
*/
|
| 48 |
|
| 49 |
+
defined( 'ABSPATH' ) or die();
|
| 50 |
+
|
| 51 |
if ( is_admin() && ! class_exists( 'c2c_AdminPostNavigation' ) ) :
|
| 52 |
|
| 53 |
class c2c_AdminPostNavigation {
|
| 63 |
* @since 1.7
|
| 64 |
*/
|
| 65 |
public static function version() {
|
| 66 |
+
return '1.7.2';
|
| 67 |
}
|
| 68 |
|
| 69 |
/**
|
| 80 |
*
|
| 81 |
*/
|
| 82 |
public static function register_post_page_hooks() {
|
| 83 |
+
|
| 84 |
+
// Load textdomain
|
| 85 |
load_plugin_textdomain( 'admin-post-navigation', false, basename( dirname( __FILE__ ) ) . DIRECTORY_SEPARATOR . 'lang' );
|
| 86 |
|
| 87 |
+
// Set translatable strings
|
| 88 |
self::$prev_text = __( '← Previous', 'admin-post-navigation' );
|
| 89 |
self::$next_text = __( 'Next →', 'admin-post-navigation' );
|
| 90 |
|
| 91 |
+
// Register hooks
|
| 92 |
add_action( 'admin_enqueue_scripts', array( __CLASS__, 'add_css' ) );
|
| 93 |
add_action( 'admin_print_footer_scripts', array( __CLASS__, 'add_js' ) );
|
| 94 |
add_action( 'do_meta_boxes', array( __CLASS__, 'do_meta_box' ), 10, 3 );
|
| 174 |
* Outputs CSS within style tags
|
| 175 |
*/
|
| 176 |
public static function add_css() {
|
| 177 |
+
echo <<<HTML
|
| 178 |
<style type="text/css">
|
| 179 |
#admin-post-nav {margin-left:20px;}
|
| 180 |
#adminpostnav #admin-post-nav {margin-left:0;}
|
| 181 |
h2 #admin-post-nav {font-size:0.6em;}
|
| 182 |
</style>
|
| 183 |
|
| 184 |
+
HTML;
|
| 185 |
}
|
| 186 |
|
| 187 |
/**
|
readme.txt
CHANGED
|
@@ -5,9 +5,9 @@ Tags: admin, navigation, post, next, previous, edit, post types, coffee2code
|
|
| 5 |
License: GPLv2 or later
|
| 6 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 7 |
Requires at least: 3.0
|
| 8 |
-
Tested up to: 3.
|
| 9 |
-
Stable tag: 1.7.
|
| 10 |
-
Version: 1.7.
|
| 11 |
|
| 12 |
Adds links to navigate to the next and previous posts when editing a post in the WordPress admin.
|
| 13 |
|
|
@@ -132,6 +132,12 @@ function override_apn_display( $text ) {
|
|
| 132 |
|
| 133 |
== Changelog ==
|
| 134 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 135 |
= 1.7.1 =
|
| 136 |
* Use string instead of variable to specify translation textdomain
|
| 137 |
* Re-license as GPLv2 or later (from X11)
|
|
@@ -226,6 +232,9 @@ function override_apn_display( $text ) {
|
|
| 226 |
|
| 227 |
== Upgrade Notice ==
|
| 228 |
|
|
|
|
|
|
|
|
|
|
| 229 |
= 1.7.1 =
|
| 230 |
Trivial update: noted compatibility through WP 3.4+; explicitly stated license
|
| 231 |
|
| 5 |
License: GPLv2 or later
|
| 6 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 7 |
Requires at least: 3.0
|
| 8 |
+
Tested up to: 3.5
|
| 9 |
+
Stable tag: 1.7.2
|
| 10 |
+
Version: 1.7.2
|
| 11 |
|
| 12 |
Adds links to navigate to the next and previous posts when editing a post in the WordPress admin.
|
| 13 |
|
| 132 |
|
| 133 |
== Changelog ==
|
| 134 |
|
| 135 |
+
= 1.7.2 =
|
| 136 |
+
* Add check to prevent execution of code if file is directly accessed
|
| 137 |
+
* Note compatibility through WP 3.5+
|
| 138 |
+
* Update copyright date (2013)
|
| 139 |
+
* Move screenshots into repo's assets directory
|
| 140 |
+
|
| 141 |
= 1.7.1 =
|
| 142 |
* Use string instead of variable to specify translation textdomain
|
| 143 |
* Re-license as GPLv2 or later (from X11)
|
| 232 |
|
| 233 |
== Upgrade Notice ==
|
| 234 |
|
| 235 |
+
= 1.7.2 =
|
| 236 |
+
Trivial update: noted compatibility through WP 3.5+
|
| 237 |
+
|
| 238 |
= 1.7.1 =
|
| 239 |
Trivial update: noted compatibility through WP 3.4+; explicitly stated license
|
| 240 |
|
screenshot-1.png
DELETED
|
Binary file
|
screenshot-2.png
DELETED
|
Binary file
|
