Plugin Directory

Changeset 595566


Ignore:
Timestamp:
09/06/2012 08:38:21 PM (13 years ago)
Author:
doodlebee
Message:

Bugfix. Explained in the changelog under 2.3

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

Legend:

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

    r589000 r595566  
    55Description: Plugin to provide nice little instructions for back-end WordPress users
    66Author: Shelly Cole
    7 Version: 2.2
     7Version: 2.3
    88Author URI: http://brassblogs.com
    99License: GPLv2
     
    7070}
    7171add_filter('pre_get_posts', 'bei_query_vars');                          // Wonder Twin powers, activate!
    72 
    7372
    7473
     
    217216        // set up dropdown names to make 'em pretty on return
    218217            if($data[$name] == 'manage_networks') $display = __('Super Administrator', 'bei_languages');
    219             if($data[$name] == 'activate_plugins') $display = __('Administrator', 'bei_languages');
    220             if($data[$name] == 'edit_others_posts') $display = __('Editor', 'bei_languages');
    221             if($data[$name] == 'delete_published_posts') $display = __('Author', 'bei_languages');
    222             if($data[$name] == 'delete_posts') $display = __('Contributor', 'bei_languages');
    223             if($data[$name] == 'read') $display = __('Subscriber', 'bei_languages');
     218            if($data[$name] == 'activate_plugins' || $data[$name] == 'administrator' || $data[$name] == 'Administrator') $display = __('Administrator', 'bei_languages');
     219            if($data[$name] == 'edit_others_posts' || $data[$name] == 'editor'|| $data[$name] == 'Editor') $display = __('Editor', 'bei_languages');
     220            if($data[$name] == 'delete_published_posts' || $data[$name] == 'author' || $data[$name] == 'Author') $display = __('Author', 'bei_languages');
     221            if($data[$name] == 'delete_posts' || $data[$name] == 'contributor' || $data[$name] == 'Contributor') $display = __('Contributor', 'bei_languages');
     222            if($data[$name] == 'read' || $data[$name] == 'subscriber' || $data[$name] == 'Subscriber') $display = __('Subscriber', 'bei_languages');
    224223                   
    225224        $output .= '<p style="font-size:1.1em; font-style:normal; "><label for="' . $name . '" style="display:inline-block; width:70px; margin-right:3px; text-align:right; font-size:0.9em; cursor:text">' . $desc . '</label><select name="' . $name . '">' . "\n";
     
    499498            $video = $instruction_info[0]['video_url'];                                     // video url
    500499            $vid_id = 'player-' . $post;                                                    // video IDs
     500
     501            if($level == 'administrator' || $level == 'Administrator') $level = 'activate_plugins'; // replace the old values
     502            if($level == 'editor' || $level == 'Editor') $level = 'edit_others_posts';              // so they show up when they're
     503            if($level == 'author' || $level == 'Author') $level = 'delete_published_posts';         // supposed to
     504            if($level == 'contributor' || $level == 'Contributor') $level = 'delete_posts';
     505            if($level == 'subscriber' || $level == 'Subscriber') $level = 'read';
    501506           
    502507            if($address == 'index.php' || $address == '') $address = 'dashboard';           // do a little fixin' for the dashboard
  • back-end-instructions/trunk/readme.txt

    r589000 r595566  
    55Requires at least: 3.1
    66Tested up to: 3.5
    7 Stable tag: 2.2
     7Stable tag: 2.3
    88License: GPLv2 or later
    99
     
    147147== Changelog ==
    148148
     149= 2.3 =
     150* 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.
     151
    149152= 2.2 =
    150153* tested in WordPress 3.5-alpha, minor bug fixes and code cleanup for the upcoming WordPress release.
Note: See TracChangeset for help on using the changeset viewer.