~canonical-sysadmins/wordpress/4.2.4

« back to all changes in this revision

Viewing changes to wp-admin/includes/screen.php

  • Committer: Nick Moffitt
  • Date: 2015-01-15 11:05:37 UTC
  • mfrom: (1.1.1 wp4-upstream)
  • Revision ID: nick.moffitt@canonical.com-20150115110537-8bp1y42eyg0jsa7c
Tags: 4.1
MergeĀ upstreamĀ versionĀ 4.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
                /**
26
26
                 * Filter the column headers for a list table on a specific screen.
27
27
                 *
28
 
                 * The dynamic portion of the hook name, $screen->id, refers to the
 
28
                 * The dynamic portion of the hook name, `$screen->id`, refers to the
29
29
                 * ID of a specific screen. For example, the screen ID for the Posts
30
30
                 * list table is edit-post, so the filter for that screen would be
31
31
                 * manage_edit-post_columns.
60
60
 *
61
61
 * @since 2.7.0
62
62
 *
63
 
 * @param string|WP_Screen $screen
 
63
 * @param WP_Screen $screen
64
64
 */
65
65
function meta_box_prefs( $screen ) {
66
66
        global $wp_meta_boxes;
177
177
 * Set the current screen object
178
178
 *
179
179
 * @since 3.0.0
180
 
 * @uses $current_screen
181
180
 *
182
181
 * @param mixed $hook_name Optional. The hook name (also known as the hook suffix) used to determine the screen,
183
182
 *      or an existing screen object.
648
647
         *
649
648
         * @since 3.3.0
650
649
         *
651
 
         * @param string $option Option ID.
652
 
         * @param mixed $key Optional. Specific array key for when the option is an array.
 
650
         * @param string $option Option name.
 
651
         * @param string $key    Optional. Specific array key for when the option is an array.
 
652
         *                       Default false.
 
653
         * @return string The option value if set, null otherwise.
653
654
         */
654
655
        public function get_option( $option, $key = false ) {
655
656
                if ( ! isset( $this->_options[ $option ] ) )
974
975
                        case 'post' :
975
976
                                $expand = '<div class="editor-expand hidden"><label for="editor-expand-toggle">';
976
977
                                $expand .= '<input type="checkbox" id="editor-expand-toggle"' . checked( get_user_setting( 'editor_expand', 'on' ), 'on', false ) . ' />';
977
 
                                $expand .= __( 'Expand the editor to match the window height.' ) . '</label></div>';
 
978
                                $expand .= __( 'Enable full-height editor and distraction-free functionality.' ) . '</label></div>';
978
979
                                $this->_screen_settings = $expand;
979
980
                                break;
980
981
                        default: