Make WordPress Core


Ignore:
Timestamp:
11/03/2011 05:08:12 PM (15 years ago)
Author:
azaozz
Message:

Revert placement of Help and Screen Options to under the admin bar on the right, see #18197, see #18785

File:
1 edited

Legend:

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

    r19119 r19130  
    690690                }
    691691
    692                 // Add screen options tab
    693                 if ( $this->show_screen_options() ) {
    694                         $this->add_help_tab( array(
    695                                 'id'       => 'screen-options',
    696                                 'title'    => __('Screen Options'),
    697                                 'callback' => array( $this, 'render_screen_options' ),
    698                         ) );
    699                         $_options_tab = array_pop( $this->_help_tabs );
    700                         array_unshift( $this->_help_tabs, $_options_tab );
    701                 }
    702 
    703692                // Time to render!
    704693                ?>
    705                 <div id="screen-meta" class='metabox-prefs'>
     694                <div id="screen-meta" class="metabox-prefs">
    706695                        <div id="contextual-help-back"></div>
    707696                        <div id="contextual-help-wrap" class="hidden">
     
    749738                                </div>
    750739                        </div>
     740                <?php
     741                // Add screen options
     742                if ( $this->show_screen_options() )
     743                        $this->render_screen_options();
     744                ?>
     745                </div>
     746                <div class="screen-meta-toggle">
     747                <?php
     748
     749                if ( $this->show_screen_options() )
     750                        echo '<a href="#screen-options-wrap">' . __('Screen Options') . '</a> |';
     751                ?>
     752                <a href="#contextual-help-wrap"><?php _e('Help'); ?></a>
    751753                </div>
    752754                <?php
     
    790792
    791793                ?>
     794                <div id="screen-options-wrap" class="hidden">
    792795                <form id="adv-settings" action="" method="post">
    793796                <?php
     
    841844                <div><?php wp_nonce_field( 'screen-options-nonce', 'screenoptionnonce', false ); ?></div>
    842845                </form>
     846                </div>
    843847                <?php
    844848        }
Note: See TracChangeset for help on using the changeset viewer.