public static function is_post_editor() { if (!self::$is_post_editor) { self::$is_post_editor = in_array(self::$script, array("post", "post-new")); } return self::$is_post_editor; }