Plugin Directory

Changeset 1831101


Ignore:
Timestamp:
02/28/2018 09:56:45 PM (8 years ago)
Author:
nathanrice
Message:

Tag 2.2.1

Location:
genesis-simple-hooks
Files:
6 edited
7 copied

Legend:

Unmodified
Added
Removed
  • genesis-simple-hooks/tags/2.2.1/genesis-simple-hooks.php

    r1611304 r1831101  
    66     * Plugin version
    77     */
    8     public $plugin_version = '2.2.0';
     8    public $plugin_version = '2.2.1';
    99
    1010    /**
     
    7171        // Because this is a Genesis-dependent plugin
    7272        add_action( 'genesis_setup', array( $this, 'includes' ) );
    73         add_action( 'genesis_setup', array( $this, 'instantiate' ) );
     73        add_action( 'genesis_admin_init', array( $this, 'instantiate' ) );
    7474        add_action( 'genesis_setup', array( $this, 'execute_hooks' ) );
    7575
     
    8585        if ( ! defined( 'PARENT_THEME_VERSION' ) || ! version_compare( PARENT_THEME_VERSION, $this->min_genesis_version, '>=' ) ) {
    8686
    87             $action = defined( 'PARENT_THEME_VERSION' ) ? __( 'upgrade to', 'genesis-simple-hooks' ) : __( 'install and activate', 'genesis-simple-hooks' );
    88 
    89             $message = sprintf( __( 'Genesis Simple Hooks requires WordPress %s and Genesis %s, or greater. Please %s the latest version of <a href="%s" target="_blank">Genesis</a> to use this plugin.', 'genesis-simple-' ), $this->min_wp_version, $this->min_genesis_version, $action, 'http://my.studiopress.com/?download_id=91046d629e74d525b3f2978e404e7ffa' );
     87            $plugin = get_plugin_data( $this->plugin_dir_path . 'plugin.php' );
     88
     89            $action = defined( 'PARENT_THEME_VERSION' ) ? __( 'upgrade to', 'plugin-boilerplate' ) : __( 'install and activate', 'plugin-boilerplate' );
     90
     91            $message = sprintf( __( '%s requires WordPress %s and <a href="%s" target="_blank">Genesis %s</a>, or greater. Please %s the latest version of Genesis to use this plugin.', 'plugin-boilerplate' ), $plugin['name'], $this->min_wp_version, 'http://my.studiopress.com/?download_id=91046d629e74d525b3f2978e404e7ffa', $this->min_genesis_version, $action );
    9092            echo '<div class="notice notice-warning"><p>' . $message . '</p></div>';
    9193
  • genesis-simple-hooks/tags/2.2.1/includes/class-genesis-simple-hooks-admin.php

    r1611304 r1831101  
    104104        // Load parent scripts as well as Genesis admin scripts */
    105105        parent::scripts();
    106         genesis_load_admin_js();
     106        genesis_scripts()->enqueue_and_localize_admin_scripts();
    107107
    108108    }
  • genesis-simple-hooks/tags/2.2.1/package.json

    r1611304 r1831101  
    3030    "author": "StudioPress",
    3131    "authoruri": "http://www.studiopress.com/",
    32     "version": "2.2.0",
     32    "version": "2.2.1",
    3333    "license": "GPL-2.0+",
    3434    "licenseuri": "http://www.gnu.org/licenses/gpl-2.0.html",
  • genesis-simple-hooks/tags/2.2.1/plugin.php

    r1611304 r1831101  
    66Description: Genesis Simple Hooks allows you easy access to the 50+ Action Hooks in the Genesis Theme.
    77
    8 Author: Nathan Rice
    9 Author URI: http://www.nathanrice.net/
     8Author: StudioPress
     9Author URI: http://www.studiopress.com/
    1010
    11 Version: 2.2.0
     11Version: 2.2.1
    1212
    1313Text Domain: genesis-simple-hooks
  • genesis-simple-hooks/tags/2.2.1/readme.txt

    r1611304 r1831101  
    55Requires at least: 4.7.2
    66Tested up to: 4.7.3
    7 Stable tag: 2.2.0
     7Stable tag: 2.2.1
    88
    99This 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.
     
    7373== Changelog ==
    7474
     75= 2.2.1 =
     76* Genesis 2.6+ compatibility (prevents white screen).
     77* Remove reference to deprecated function.
     78
    7579= 2.2.0 =
    7680* Rewrite plugin based on new plugin boilerplate.
     
    7983* Better Genesis dependency handling.
    8084* Change activation hook to conditional admin notice.
     85* Allow hooks to be de-registered via filter.
    8186
    8287= 2.1.2 =
  • genesis-simple-hooks/trunk/genesis-simple-hooks.php

    r1611304 r1831101  
    66     * Plugin version
    77     */
    8     public $plugin_version = '2.2.0';
     8    public $plugin_version = '2.2.1';
    99
    1010    /**
     
    7171        // Because this is a Genesis-dependent plugin
    7272        add_action( 'genesis_setup', array( $this, 'includes' ) );
    73         add_action( 'genesis_setup', array( $this, 'instantiate' ) );
     73        add_action( 'genesis_admin_init', array( $this, 'instantiate' ) );
    7474        add_action( 'genesis_setup', array( $this, 'execute_hooks' ) );
    7575
     
    8585        if ( ! defined( 'PARENT_THEME_VERSION' ) || ! version_compare( PARENT_THEME_VERSION, $this->min_genesis_version, '>=' ) ) {
    8686
    87             $action = defined( 'PARENT_THEME_VERSION' ) ? __( 'upgrade to', 'genesis-simple-hooks' ) : __( 'install and activate', 'genesis-simple-hooks' );
    88 
    89             $message = sprintf( __( 'Genesis Simple Hooks requires WordPress %s and Genesis %s, or greater. Please %s the latest version of <a href="%s" target="_blank">Genesis</a> to use this plugin.', 'genesis-simple-' ), $this->min_wp_version, $this->min_genesis_version, $action, 'http://my.studiopress.com/?download_id=91046d629e74d525b3f2978e404e7ffa' );
     87            $plugin = get_plugin_data( $this->plugin_dir_path . 'plugin.php' );
     88
     89            $action = defined( 'PARENT_THEME_VERSION' ) ? __( 'upgrade to', 'plugin-boilerplate' ) : __( 'install and activate', 'plugin-boilerplate' );
     90
     91            $message = sprintf( __( '%s requires WordPress %s and <a href="%s" target="_blank">Genesis %s</a>, or greater. Please %s the latest version of Genesis to use this plugin.', 'plugin-boilerplate' ), $plugin['name'], $this->min_wp_version, 'http://my.studiopress.com/?download_id=91046d629e74d525b3f2978e404e7ffa', $this->min_genesis_version, $action );
    9092            echo '<div class="notice notice-warning"><p>' . $message . '</p></div>';
    9193
  • genesis-simple-hooks/trunk/includes/class-genesis-simple-hooks-admin.php

    r1611304 r1831101  
    104104        // Load parent scripts as well as Genesis admin scripts */
    105105        parent::scripts();
    106         genesis_load_admin_js();
     106        genesis_scripts()->enqueue_and_localize_admin_scripts();
    107107
    108108    }
  • genesis-simple-hooks/trunk/package.json

    r1611304 r1831101  
    3030    "author": "StudioPress",
    3131    "authoruri": "http://www.studiopress.com/",
    32     "version": "2.2.0",
     32    "version": "2.2.1",
    3333    "license": "GPL-2.0+",
    3434    "licenseuri": "http://www.gnu.org/licenses/gpl-2.0.html",
  • genesis-simple-hooks/trunk/plugin.php

    r1611304 r1831101  
    66Description: Genesis Simple Hooks allows you easy access to the 50+ Action Hooks in the Genesis Theme.
    77
    8 Author: Nathan Rice
    9 Author URI: http://www.nathanrice.net/
     8Author: StudioPress
     9Author URI: http://www.studiopress.com/
    1010
    11 Version: 2.2.0
     11Version: 2.2.1
    1212
    1313Text Domain: genesis-simple-hooks
  • genesis-simple-hooks/trunk/readme.txt

    r1611304 r1831101  
    55Requires at least: 4.7.2
    66Tested up to: 4.7.3
    7 Stable tag: 2.2.0
     7Stable tag: 2.2.1
    88
    99This 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.
     
    7373== Changelog ==
    7474
     75= 2.2.1 =
     76* Genesis 2.6+ compatibility (prevents white screen).
     77* Remove reference to deprecated function.
     78
    7579= 2.2.0 =
    7680* Rewrite plugin based on new plugin boilerplate.
     
    7983* Better Genesis dependency handling.
    8084* Change activation hook to conditional admin notice.
     85* Allow hooks to be de-registered via filter.
    8186
    8287= 2.1.2 =
Note: See TracChangeset for help on using the changeset viewer.