PHP 클래스 Jetpack_IDC, jetpack

부터: 4.4.0
파일 보기 프로젝트 열기: automattic/jetpack 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$current_screen WP_Screen The current screen, which is set if the current user is a non-admin and this is an admin page.
$is_safe_mode_confirmed boolean Has safe mode been confirmed?
$wpcom_home_url string The wpcom value of the home URL

공개 메소드들

메소드 설명
admin_page_has_help_tabs ( ) : boolean Does the current admin page have help tabs?
clear_all_idc_options ( ) Clears all IDC specific options. This method is used on disconnect and reconnect.
display_admin_bar_button ( )
display_idc_notice ( ) First "step" of the IDC mitigation. Will provide some messaging and two options/buttons.
display_non_admin_idc_notice ( )
enqueue_admin_bar_css ( )
enqueue_idc_notice_files ( ) Enqueue scripts for the notice
get_confirm_safe_mode_action_explanation ( )
get_confirm_safe_mode_button_text ( )
get_first_step_fix_connection_action_explanation ( )
get_first_step_fix_connection_button_text ( )
get_first_step_header_explanation ( )
get_first_step_header_lead ( )
get_migrate_site_action_explanation ( )
get_migrate_site_button_text ( )
get_non_admin_contact_admin_text ( )
get_non_admin_notice_text ( )
get_second_step_header_lead ( )
get_start_fresh_action_explanation ( )
get_start_fresh_button_text ( )
get_unsure_prompt ( )
init ( )
maybe_clear_migrate_option ( $processed_items ) This method loops through the array of processed items from sync and checks if one of the items was the home_url or site_url callable. If so, then we delete the jetpack_migrate_for_idc option.
non_admins_current_screen_check ( $current_screen )
prepare_url_for_display ( $url )
render_error_notice ( ) Is a container for the error notices.
render_notice_first_step ( )
render_notice_header ( )
render_notice_second_step ( )
wordpress_init ( )

비공개 메소드들

메소드 설명
__construct ( )

메소드 상세

admin_page_has_help_tabs() 공개 메소드

Does the current admin page have help tabs?

clear_all_idc_options() 정적인 공개 메소드

Clears all IDC specific options. This method is used on disconnect and reconnect.
static public clear_all_idc_options ( )

display_admin_bar_button() 공개 메소드

display_idc_notice() 공개 메소드

"Confirm Staging" - Dismiss the notice and continue on with our lives in staging mode. "Fix Jetpack Connection" - Will disconnect the site and start the mitigation...
public display_idc_notice ( )

display_non_admin_idc_notice() 공개 메소드

enqueue_admin_bar_css() 공개 메소드

enqueue_idc_notice_files() 공개 메소드

Enqueue scripts for the notice

get_confirm_safe_mode_action_explanation() 공개 메소드

get_confirm_safe_mode_button_text() 공개 메소드

get_first_step_fix_connection_action_explanation() 공개 메소드

get_first_step_fix_connection_button_text() 공개 메소드

get_first_step_header_explanation() 공개 메소드

get_first_step_header_lead() 공개 메소드

get_migrate_site_action_explanation() 공개 메소드

get_migrate_site_button_text() 공개 메소드

get_non_admin_contact_admin_text() 공개 메소드

get_non_admin_notice_text() 공개 메소드

get_second_step_header_lead() 공개 메소드

get_start_fresh_action_explanation() 공개 메소드

get_start_fresh_button_text() 공개 메소드

get_unsure_prompt() 공개 메소드

public get_unsure_prompt ( )

init() 정적인 공개 메소드

static public init ( )

maybe_clear_migrate_option() 공개 메소드

This method loops through the array of processed items from sync and checks if one of the items was the home_url or site_url callable. If so, then we delete the jetpack_migrate_for_idc option.
public maybe_clear_migrate_option ( $processed_items )
$processed_items array Array of processed items that were synced to WordPress.com

non_admins_current_screen_check() 공개 메소드

public non_admins_current_screen_check ( $current_screen )

prepare_url_for_display() 정적인 공개 메소드

static public prepare_url_for_display ( $url )

render_error_notice() 공개 메소드

Will be shown/controlled by jQuery in idc-notice.js
public render_error_notice ( )

render_notice_first_step() 공개 메소드

render_notice_header() 공개 메소드

render_notice_second_step() 공개 메소드

wordpress_init() 공개 메소드

public wordpress_init ( )

프로퍼티 상세

$current_screen 정적으로 공개적으로 프로퍼티

The current screen, which is set if the current user is a non-admin and this is an admin page.
static public WP_Screen $current_screen
리턴 WP_Screen

$is_safe_mode_confirmed 정적으로 공개적으로 프로퍼티

Has safe mode been confirmed?
static public bool $is_safe_mode_confirmed
리턴 boolean

$wpcom_home_url 정적으로 공개적으로 프로퍼티

The wpcom value of the home URL
static public string $wpcom_home_url
리턴 string