@@ -570,8 +570,8 @@ public function test_rest_autosave_published_post() {
570570 }
571571
572572 public function test_rest_autosave_draft_post_same_author () {
573- $ original_option = get_option ( 'enable_real_time_collaboration ' );
574- update_option ( 'enable_real_time_collaboration ' , false );
573+ $ original_option = get_option ( 'wp_enable_real_time_collaboration ' );
574+ update_option ( 'wp_enable_real_time_collaboration ' , false );
575575
576576 wp_set_current_user ( self ::$ editor_id );
577577
@@ -607,7 +607,7 @@ public function test_rest_autosave_draft_post_same_author() {
607607 $ this ->assertSame ( $ post_data ['post_excerpt ' ], $ post ->post_excerpt );
608608
609609 wp_delete_post ( $ post_id );
610- update_option ( 'enable_real_time_collaboration ' , $ original_option );
610+ update_option ( 'wp_enable_real_time_collaboration ' , $ original_option );
611611 }
612612
613613 public function test_rest_autosave_draft_post_different_author () {
@@ -748,8 +748,8 @@ public function test_get_item_sets_up_postdata() {
748748 }
749749
750750 public function test_update_item_draft_page_with_parent () {
751- $ original_option = get_option ( 'enable_real_time_collaboration ' );
752- update_option ( 'enable_real_time_collaboration ' , false );
751+ $ original_option = get_option ( 'wp_enable_real_time_collaboration ' );
752+ update_option ( 'wp_enable_real_time_collaboration ' , false );
753753
754754 wp_set_current_user ( self ::$ editor_id );
755755 $ request = new WP_REST_Request ( 'POST ' , '/wp/v2/pages/ ' . self ::$ child_draft_page_id . '/autosaves ' );
@@ -768,7 +768,7 @@ public function test_update_item_draft_page_with_parent() {
768768
769769 $ this ->assertSame ( self ::$ child_draft_page_id , $ data ['id ' ] );
770770 $ this ->assertSame ( self ::$ parent_page_id , $ data ['parent ' ] );
771- update_option ( 'enable_real_time_collaboration ' , $ original_option );
771+ update_option ( 'wp_enable_real_time_collaboration ' , $ original_option );
772772 }
773773
774774 public function test_schema_validation_is_applied () {
@@ -934,8 +934,8 @@ public static function data_head_request_with_specified_fields_returns_success_r
934934 * same author should create a revision instead of updating the post directly.
935935 */
936936 public function test_rest_autosave_draft_post_same_author_with_rtc () {
937- $ original_option = get_option ( 'enable_real_time_collaboration ' );
938- update_option ( 'enable_real_time_collaboration ' , true );
937+ $ original_option = get_option ( 'wp_enable_real_time_collaboration ' );
938+ update_option ( 'wp_enable_real_time_collaboration ' , true );
939939
940940 wp_set_current_user ( self ::$ editor_id );
941941
@@ -974,16 +974,16 @@ public function test_rest_autosave_draft_post_same_author_with_rtc() {
974974 $ this ->assertSame ( $ post_data ['post_excerpt ' ], $ post ->post_excerpt );
975975
976976 wp_delete_post ( $ post_id );
977- update_option ( 'enable_real_time_collaboration ' , $ original_option );
977+ update_option ( 'wp_enable_real_time_collaboration ' , $ original_option );
978978 }
979979
980980 /**
981981 * When real-time collaboration is enabled, autosaving a draft page with
982982 * a parent should create a revision instead of updating the page directly.
983983 */
984984 public function test_update_item_draft_page_with_parent_with_rtc () {
985- $ original_option = get_option ( 'enable_real_time_collaboration ' );
986- update_option ( 'enable_real_time_collaboration ' , true );
985+ $ original_option = get_option ( 'wp_enable_real_time_collaboration ' );
986+ update_option ( 'wp_enable_real_time_collaboration ' , true );
987987
988988 wp_set_current_user ( self ::$ editor_id );
989989 $ request = new WP_REST_Request ( 'POST ' , '/wp/v2/pages/ ' . self ::$ child_draft_page_id . '/autosaves ' );
@@ -1003,6 +1003,6 @@ public function test_update_item_draft_page_with_parent_with_rtc() {
10031003 // With RTC enabled, a revision is created instead of updating the page.
10041004 $ this ->assertNotSame ( self ::$ child_draft_page_id , $ data ['id ' ] );
10051005 $ this ->assertSame ( self ::$ child_draft_page_id , $ data ['parent ' ] );
1006- update_option ( 'enable_real_time_collaboration ' , $ original_option );
1006+ update_option ( 'wp_enable_real_time_collaboration ' , $ original_option );
10071007 }
10081008}
0 commit comments