Make WP_Screen final until we know which direction we want to go with it. Other keyword decorations. see #18785.

git-svn-id: https://develop.svn.wordpress.org/trunk@18784 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2011-09-26 23:31:54 +00:00
parent f63662aa82
commit 30f64015c2
1 changed files with 14 additions and 14 deletions

View File

@ -596,18 +596,18 @@ function set_current_screen( $id = '' ) {
$current_screen = apply_filters('current_screen', $current_screen); $current_screen = apply_filters('current_screen', $current_screen);
} }
class WP_Screen { final class WP_Screen {
var $action = ''; public $action = '';
var $base; public $base;
var $id; public $id;
var $is_network; public $is_network;
var $is_user; public $is_user;
var $parent_base; public $parent_base;
var $parent_file; public $parent_file;
var $post_type; public $post_type;
var $taxonomy; public $taxonomy;
function __construct( $id = '' ) { public function __construct( $id = '' ) {
global $hook_suffix, $typenow, $taxnow; global $hook_suffix, $typenow, $taxnow;
$action = ''; $action = '';
@ -676,17 +676,17 @@ class WP_Screen {
$this->parent_base = str_replace('.php', '', $this->parent_base); $this->parent_base = str_replace('.php', '', $this->parent_base);
} }
function add_option( $option, $args = array() ) { public function add_option( $option, $args = array() ) {
return add_screen_option( $option, $args ); return add_screen_option( $option, $args );
} }
function add_help_tab( $id, $title, $content) { public function add_help_tab( $id, $title, $content) {
global $_wp_contextual_help; global $_wp_contextual_help;
$_wp_contextual_help[$this->id]['tabs'][] = array( $id, $title, $content ); $_wp_contextual_help[$this->id]['tabs'][] = array( $id, $title, $content );
} }
function add_help_sidebar( $content ) { public function add_help_sidebar( $content ) {
global $_wp_contextual_help; global $_wp_contextual_help;
$_wp_contextual_help[$this->id]['sidebar'] = $content; $_wp_contextual_help[$this->id]['sidebar'] = $content;