Plugin Directory

Changeset 680238


Ignore:
Timestamp:
03/12/2013 03:56:33 AM (13 years ago)
Author:
zslabs
Message:

1.1.0 push

Location:
roots-plug/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • roots-plug/trunk/RootsPlug/Addons.php

    r678902 r680238  
    2727        add_action( 'check_comment_flood', array( $this, 'verify_comment_referer' ) );
    2828        add_filter( 'wp_nav_menu_items', array( $this, 'first_last_class_menu' ) );
     29        add_action( 'admin_menu', array( $this, 'all_settings_link' ) );
    2930
    3031        /**
     
    7172    public function verify_comment_referer() {
    7273
    73         if (!wp_get_referer()) {
    74             wp_die( __('You cannot post comment at this time, may be you need to enable referrers in your browser.','roots') );
     74        if ( !wp_get_referer() ) {
     75
     76            wp_die( __('You cannot post comment at this time, may be you need to enable referrers in your browser.','rootsplug') );
    7577        }
    7678
     79    }
     80
     81    /**
     82     * Adds link to Settings panel for easy access to the main options page (normally hidden)
     83     * http://wordpress.stackexchange.com/a/1614/9605
     84     * @return void
     85     *
     86     * @since 1.1.0
     87     */
     88    public function all_settings_link() {
     89
     90        if ( is_admin() && current_user_can( 'manage_options' ) && !is_multisite() ) {
     91
     92            add_options_page( __( 'All Settings', 'rootsplug' ), __( 'All Settings', 'rootsplug' ), 'administrator', 'options.php' );
     93        }
    7794    }
    7895
  • roots-plug/trunk/readme.txt

    r678904 r680238  
    55Requires at least: 3.5
    66Tested up to: 3.5
    7 Stable tag: 1.0.1
     7Stable tag: 1.1.0
    88License: GPLv2
    99
     
    1313
    1414Roots Plug is the catch-all awesome WordPress plugin that cleans up default output and provides all those handy-dandy functions that we all search for around the web - in one convenient package! It also appends on [HTML5 Boilerplate's](http://html5boilerplate.com/) `.htaccess` rewrites automagically.
     15
     16Inspired by [Roots Theme](http://rootstheme.com) by Ben Word -- extracted much of the cleanup efforts into a handy-dany plugin.
    1517
    1618**Roots Plug was recently rewritten from scratch. While most of the base functionality remained intact, gone are the asset rewrites. Why? Because they forced you to change how your template files were stored and broke several other plugins - which isn't cool. Upcoming releases will continue to make this more compatible across different WordPress environments. 3.5 is a requirement now.**
     
    2830
    2931== Changelog ==
     32
     33= 1.1.0 =
     34* Source credits given
     35* 'Options' link added (for easy access to `options.php`) in Settings Panel
    3036
    3137= 1.0.1 =
  • roots-plug/trunk/roots-plug.php

    r678904 r680238  
    44Plugin URI: http://zslabs.com
    55Description: Base plugin
    6 Version: 1.0.1
     6Version: 1.1.0
    77Author: Zach Schnackel
    88Author URI: http://zslabs.com
Note: See TracChangeset for help on using the changeset viewer.