Changeset 595566
- Timestamp:
- 09/06/2012 08:38:21 PM (13 years ago)
- Location:
- back-end-instructions/trunk
- Files:
-
- 2 edited
-
instructions.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
back-end-instructions/trunk/instructions.php
r589000 r595566 5 5 Description: Plugin to provide nice little instructions for back-end WordPress users 6 6 Author: Shelly Cole 7 Version: 2. 27 Version: 2.3 8 8 Author URI: http://brassblogs.com 9 9 License: GPLv2 … … 70 70 } 71 71 add_filter('pre_get_posts', 'bei_query_vars'); // Wonder Twin powers, activate! 72 73 72 74 73 … … 217 216 // set up dropdown names to make 'em pretty on return 218 217 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'); 224 223 225 224 $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"; … … 499 498 $video = $instruction_info[0]['video_url']; // video url 500 499 $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'; 501 506 502 507 if($address == 'index.php' || $address == '') $address = 'dashboard'; // do a little fixin' for the dashboard -
back-end-instructions/trunk/readme.txt
r589000 r595566 5 5 Requires at least: 3.1 6 6 Tested up to: 3.5 7 Stable tag: 2. 27 Stable tag: 2.3 8 8 License: GPLv2 or later 9 9 … … 147 147 == Changelog == 148 148 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 149 152 = 2.2 = 150 153 * 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.