Changeset 651363
- Timestamp:
- 01/11/2013 04:28:47 PM (13 years ago)
- Location:
- back-end-instructions/trunk
- Files:
-
- 2 edited
-
instructions.php (modified) (10 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
back-end-instructions/trunk/instructions.php
r595566 r651363 5 5 Description: Plugin to provide nice little instructions for back-end WordPress users 6 6 Author: Shelly Cole 7 Version: 2. 37 Version: 2.4 8 8 Author URI: http://brassblogs.com 9 9 License: GPLv2 … … 36 36 global $current_user, $post; // globalize 37 37 $pluginloc = dirname( plugin_basename( __FILE__ ) ); 38 $options = get_option('bei_options'); // get options in DB39 38 $address = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER["REQUEST_URI"]; // current page's path 40 39 $addy_parts = explode('/', $address); // get url parts … … 48 47 add_action('admin_init', 'bei_add_instructions_options'); // add the options array if it's not there 49 48 function bei_add_instructions_options() { 50 global $options; 49 $options = get_option('bei_options'); 50 51 51 if(!$options) { 52 52 $array = array('admin' => 'activate_plugins', // array for all the options … … 88 88 add_action('init', 'bei_create_instructions_management'); 89 89 function bei_create_instructions_management() { 90 global $options, $current_user; 90 global $current_user; 91 92 $options = get_option('bei_options'); 93 91 94 $level = $options['admin']; 92 95 $front = $options['public']; … … 291 294 function check_bei_posts() { // function to check that plugin has never 292 295 // been installed before 293 global $options; 296 $options = get_option('bei_options'); 297 294 298 $old = get_option('_back_end_instructions'); // old versions 295 299 … … 341 345 342 346 function bei_setting_string() { 343 global $options; 347 348 $options = get_option('bei_options'); 344 349 345 350 echo __('<span class="description" style="display:block;">Choose the lowest level logged-in user to create/edit/delete Instructions.</span>', 'bei_languages'); … … 355 360 356 361 function bei_setting_string_public() { 357 global $options; 362 363 $options = get_option('bei_options'); 364 358 365 $permalink = get_option("home") . '/wp-admin/options-permalink.php'; 359 366 … … 366 373 367 374 function bei_setting_string_private() { 368 global $options; 375 376 $options = get_option('bei_options'); 369 377 370 378 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"; … … 375 383 376 384 function bei_setting_string_view() { 377 global $options; 385 386 $options = get_option('bei_options'); 378 387 379 388 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"; … … 577 586 function bei_caps() { 578 587 // 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'); 580 589 $view = $options['view']; 581 590 $caps = array(); -
back-end-instructions/trunk/readme.txt
r595567 r651363 5 5 Requires at least: 3.1 6 6 Tested up to: 3.5 7 Stable tag: 2. 37 Stable tag: 2.4 8 8 License: GPLv2 or later 9 9 … … 148 148 149 149 = 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 = 150 154 * 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 155
Note: See TracChangeset
for help on using the changeset viewer.