~canonical-sysadmins/wordpress/4.8.1

« back to all changes in this revision

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

  • Committer: Barry Price
  • Date: 2016-08-17 04:50:12 UTC
  • mfrom: (1.1.18 upstream)
  • Revision ID: barry.price@canonical.com-20160817045012-qfui81zhqnqv2ba9
Merge WP4.6 from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
418
418
        }
419
419
 
420
420
        /**
421
 
         * Sets the old string-based contextual help for the screen.
422
 
         *
423
 
         * For backwards compatibility.
 
421
         * Sets the old string-based contextual help for the screen for backward compatibility.
424
422
         *
425
423
         * @since 3.3.0
426
424
         *
722
720
        /**
723
721
         * Render the screen's help section.
724
722
         *
725
 
         * This will trigger the deprecated filters for backwards compatibility.
 
723
         * This will trigger the deprecated filters for backward compatibility.
726
724
         *
727
725
         * @since 3.3.0
728
726
         *
731
729
        public function render_screen_meta() {
732
730
 
733
731
                /**
734
 
                 * Filter the legacy contextual help list.
 
732
                 * Filters the legacy contextual help list.
735
733
                 *
736
734
                 * @since 2.7.0
737
735
                 * @deprecated 3.3.0 Use get_current_screen()->add_help_tab() or
745
743
                $old_help = isset( self::$_old_compat_help[ $this->id ] ) ? self::$_old_compat_help[ $this->id ] : '';
746
744
 
747
745
                /**
748
 
                 * Filter the legacy contextual help text.
 
746
                 * Filters the legacy contextual help text.
749
747
                 *
750
748
                 * @since 2.7.0
751
749
                 * @deprecated 3.3.0 Use get_current_screen()->add_help_tab() or
762
760
                if ( empty( $old_help ) && ! $this->get_help_tabs() ) {
763
761
 
764
762
                        /**
765
 
                         * Filter the default legacy contextual help text.
 
763
                         * Filters the default legacy contextual help text.
766
764
                         *
767
765
                         * @since 2.8.0
768
766
                         * @deprecated 3.3.0 Use get_current_screen()->add_help_tab() or
851
849
                // Setup layout columns
852
850
 
853
851
                /**
854
 
                 * Filter the array of screen layout columns.
 
852
                 * Filters the array of screen layout columns.
855
853
                 *
856
854
                 * This hook provides back-compat for plugins using the back-compat
857
 
                 * filter instead of add_screen_option().
 
855
                 * Filters instead of add_screen_option().
858
856
                 *
859
857
                 * @since 2.8.0
860
858
                 *
931
929
                }
932
930
 
933
931
                /**
934
 
                 * Filter the screen settings text displayed in the Screen Options tab.
 
932
                 * Filters the screen settings text displayed in the Screen Options tab.
935
933
                 *
936
934
                 * This filter is currently only used on the Widgets screen to enable
937
935
                 * accessibility mode.
947
945
                        $show_screen = true;
948
946
 
949
947
                /**
950
 
                 * Filter whether to show the Screen Options tab.
 
948
                 * Filters whether to show the Screen Options tab.
951
949
                 *
952
950
                 * @since 3.2.0
953
951
                 *
997
995
                echo $this->_screen_settings;
998
996
 
999
997
                /**
1000
 
                 * Filter whether to show the Screen Options submit button.
 
998
                 * Filters whether to show the Screen Options submit button.
1001
999
                 *
1002
1000
                 * @since 4.4.0
1003
1001
                 *
1206
1204
                $view_mode_post_types = get_post_types( array( 'hierarchical' => false, 'show_ui' => true ) );
1207
1205
 
1208
1206
                /**
1209
 
                 * Filter the post types that have different view mode options.
 
1207
                 * Filters the post types that have different view mode options.
1210
1208
                 *
1211
1209
                 * @since 4.4.0
1212
1210
                 *