Plugin Directory

Changeset 651363


Ignore:
Timestamp:
01/11/2013 04:28:47 PM (13 years ago)
Author:
doodlebee
Message:

Version 2.4 upgrade. Fixed conflicts with WordPress SEO plugin and Ultimate Tiny MCE.

Location:
back-end-instructions/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • back-end-instructions/trunk/instructions.php

    r595566 r651363  
    55Description: Plugin to provide nice little instructions for back-end WordPress users
    66Author: Shelly Cole
    7 Version: 2.3
     7Version: 2.4
    88Author URI: http://brassblogs.com
    99License: GPLv2
     
    3636global $current_user, $post;                                            // globalize
    3737$pluginloc = dirname( plugin_basename( __FILE__ ) );
    38 $options = get_option('bei_options');                                   // get options in DB
    3938$address = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER["REQUEST_URI"]; // current page's path
    4039$addy_parts = explode('/', $address);                                   // get url parts
     
    4847add_action('admin_init', 'bei_add_instructions_options');               // add the options array if it's not there
    4948function bei_add_instructions_options() {
    50     global $options;
     49    $options = get_option('bei_options');
     50
    5151    if(!$options) {
    5252        $array = array('admin' => 'activate_plugins',                   // array for all the options
     
    8888add_action('init', 'bei_create_instructions_management');
    8989function bei_create_instructions_management() {
    90     global $options, $current_user;
     90    global $current_user;
     91
     92    $options = get_option('bei_options');
     93
    9194    $level = $options['admin'];
    9295    $front = $options['public'];
     
    291294function check_bei_posts() {                                                    // function to check that plugin has never
    292295                                                                                // been installed before
    293     global $options;
     296    $options = get_option('bei_options');
     297
    294298    $old = get_option('_back_end_instructions');                                // old versions
    295299                   
     
    341345
    342346function bei_setting_string() {
    343     global $options;
     347   
     348    $options = get_option('bei_options');
    344349   
    345350    echo __('<span class="description" style="display:block;">Choose the lowest level logged-in user to create/edit/delete Instructions.</span>', 'bei_languages');
     
    355360
    356361function bei_setting_string_public() {
    357     global $options;
     362   
     363    $options = get_option('bei_options');
     364
    358365    $permalink = get_option("home") . '/wp-admin/options-permalink.php';
    359366   
     
    366373
    367374function bei_setting_string_private() {
    368     global $options;
     375   
     376    $options = get_option('bei_options');
    369377   
    370378    echo __('<span class="description" style="display:block;">Check "yes" if you\'d like to make front-end instructions visible only to logged-in users.<br /><strong>PLEASE NOTE</strong>: if you check "yes" ANYONE can see ALL of these instructions.  See the next option to help with that a bit.</span>', 'bei_languages') . "\n\n";
     
    375383
    376384function bei_setting_string_view() {
    377     global $options;
     385   
     386    $options = get_option('bei_options');
    378387   
    379388    echo __('<span class="description" style="display:block;">You only need to choose an option from this dropdown if you set "Show in front?" to "yes" AND "Logged-in users only?" to "no".  If this option were not here, then ANY visitor to the site could see ALL instructions just by visiting the page.  If the user is logged in, they would see only instructions that were available to their level, but if they aren\'t, they would see them for ALL levels.  This option will allow you to treat a non-logged-in user as if they have a user level.  The default is "Contributor."</span>', 'bei_languages') . "\n\n";
     
    577586function bei_caps() {
    578587    // makes a fake list of capabilities, since people who aren't logged in won't have any
    579     global $options;
     588    $options = get_option('bei_options');
    580589    $view = $options['view'];
    581590    $caps = array();
  • back-end-instructions/trunk/readme.txt

    r595567 r651363  
    55Requires at least: 3.1
    66Tested up to: 3.5
    7 Stable tag: 2.3
     7Stable tag: 2.4
    88License: GPLv2 or later
    99
     
    148148
    149149= 2.3 =
     150* Finally fixed the issue of the Instructions post type not showing up when Wordpress SEO is installed and activated.
     151* Fixed issue where radio buttons don't function in settgins page when the Ultimate TinyMCE (by Josh Lobe - tested version 4.0.3, which was the only version I have access to) plugin is used.
     152
     153= 2.3 =
    150154* Discovered an issue where instructions that were created before version 2.2 would not show up anywhere after the upgrade.  My bad.  Variable misnaming.  It's now fixed.
    151155
Note: See TracChangeset for help on using the changeset viewer.