Make WordPress Core


Ignore:
Timestamp:
06/07/2009 01:52:44 AM (17 years ago)
Author:
azaozz
Message:

Allow CodePress to be disabled from Screen Options, see #10027

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r11503 r11530  
    34323432        $_wp_contextual_help = array();
    34333433
    3434     $widgets_access = '';
     3434    $settings = '';
    34353435
    34363436    switch ( $screen ) {
     
    34723472            }
    34733473            break;
     3474        case 'theme-editor':
     3475        case 'plugin-editor':
     3476            $settings = '<p><a id="codepress-on" href="' . $screen . '.php?codepress=on">' . __('Enable syntax highlighting') . '</a><a id="codepress-off" href="' . $screen . '.php?codepress=off">' . __('Disable syntax highlighting') . "</a></p>\n";
     3477            $show_screen = true;
     3478            break;
    34743479        case 'widgets':
    34753480            if ( !isset($_wp_contextual_help['widgets']) ) {
     
    34773482                $_wp_contextual_help['widgets'] = $help;
    34783483            }
    3479             $widgets_access = '<p><a id="access-on" href="widgets.php?widgets-access=on">' . __('Enable accessibility mode') . '</a><a id="access-off" href="widgets.php?widgets-access=off">' . __('Disable accessibility mode') . "</a></p>\n";
     3484            $settings = '<p><a id="access-on" href="widgets.php?widgets-access=on">' . __('Enable accessibility mode') . '</a><a id="access-off" href="widgets.php?widgets-access=off">' . __('Disable accessibility mode') . "</a></p>\n";
    34803485            $show_screen = true;
    34813486            break;
     
    35013506<?php echo screen_layout($screen); ?>
    35023507<?php echo $screen_options; ?>
    3503 <?php echo $widgets_access; ?>
     3508<?php echo $settings; ?>
    35043509<div><?php wp_nonce_field( 'screen-options-nonce', 'screenoptionnonce', false ); ?></div>
    35053510</form>
Note: See TracChangeset for help on using the changeset viewer.