Genesis Simple Hooks - Version 1.4

Version Description

  • Increased requirement to Genesis 1.4
  • Fixed undefined index but in functions.php
Download this release

Release Info

Developer nathanrice
Plugin Icon 128x128 Genesis Simple Hooks
Version 1.4
Comparing to
See all releases

Code changes from version 1.3.1.1 to 1.4

Files changed (3) hide show
  1. functions.php +2 -2
  2. plugin.php +3 -3
  3. readme.txt +7 -3
functions.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
 
3
  /**
4
- * Pull an EasyHook option from the database, return value
5
  *
6
  * @since 0.1
7
  */
@@ -16,7 +16,7 @@ function simplehooks_get_option($hook = null, $field = null, $all = false) {
16
  if ( ! array_key_exists( $hook, (array)$options ) )
17
  return '';
18
 
19
- $option = $options[$hook][$field];
20
  return wp_kses_stripslashes( wp_kses_decode_entities( $option ) );
21
 
22
  }
1
  <?php
2
 
3
  /**
4
+ * Pull an Simple Hooks option from the database, return value
5
  *
6
  * @since 0.1
7
  */
16
  if ( ! array_key_exists( $hook, (array)$options ) )
17
  return '';
18
 
19
+ $option = isset( $options[$hook][$field] ) ? $options[$hook][$field] : '';
20
  return wp_kses_stripslashes( wp_kses_decode_entities( $option ) );
21
 
22
  }
plugin.php CHANGED
@@ -3,16 +3,16 @@
3
  Plugin Name: Genesis Simple Hooks
4
  Plugin URI: http://www.studiopress.com/plugins/simple-hooks
5
  Description: Genesis Simple Hooks allows you easy access to the 50+ Action Hooks in the Genesis Theme.
6
- Version: 1.3.1.1
7
  Author: Nathan Rice
8
  Author URI: http://www.nathanrice.net/
9
  */
10
 
11
- // require Genesis 1.3 upon activation
12
  register_activation_hook(__FILE__, 'simplehooks_activation_check');
13
  function simplehooks_activation_check() {
14
 
15
- $latest = '1.3';
16
 
17
  $theme_info = get_theme_data(TEMPLATEPATH.'/style.css');
18
 
3
  Plugin Name: Genesis Simple Hooks
4
  Plugin URI: http://www.studiopress.com/plugins/simple-hooks
5
  Description: Genesis Simple Hooks allows you easy access to the 50+ Action Hooks in the Genesis Theme.
6
+ Version: 1.4
7
  Author: Nathan Rice
8
  Author URI: http://www.nathanrice.net/
9
  */
10
 
11
+ // require Genesis 1.4 upon activation
12
  register_activation_hook(__FILE__, 'simplehooks_activation_check');
13
  function simplehooks_activation_check() {
14
 
15
+ $latest = '1.4';
16
 
17
  $theme_info = get_theme_data(TEMPLATEPATH.'/style.css');
18
 
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: nathanrice, studiopress
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5553118
4
  Tags: hooks, genesis, genesiswp, studiopress
5
  Requires at least: 3.0
6
- Tested up to: 3.0.1
7
- Stable tag: 1.3.1.1
8
 
9
  This plugin creates a new Genesis settings page that allows you to insert code (HTML, Shortcodes, and PHP), and attach it to any of the 50+ action hooks throughout the Genesis Theme Framework, from StudioPress.
10
 
@@ -93,4 +93,8 @@ The most common request from Genesis users is how to properly modify their foote
93
 
94
  = 1.3.1.1 =
95
  * Reduce requirement to Genesis 1.3
96
- * Increase requirement to WordPress 3.0
 
 
 
 
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5553118
4
  Tags: hooks, genesis, genesiswp, studiopress
5
  Requires at least: 3.0
6
+ Tested up to: 3.0.2
7
+ Stable tag: 1.4
8
 
9
  This plugin creates a new Genesis settings page that allows you to insert code (HTML, Shortcodes, and PHP), and attach it to any of the 50+ action hooks throughout the Genesis Theme Framework, from StudioPress.
10
 
93
 
94
  = 1.3.1.1 =
95
  * Reduce requirement to Genesis 1.3
96
+ * Increase requirement to WordPress 3.0
97
+
98
+ = 1.4 =
99
+ * Increased requirement to Genesis 1.4
100
+ * Fixed undefined index but in functions.php