diff --git a/includes/VisualEditorHooks.php b/includes/VisualEditorHooks.php index a10ae117f6..0b335cbd5d 100644 --- a/includes/VisualEditorHooks.php +++ b/includes/VisualEditorHooks.php @@ -528,7 +528,7 @@ class VisualEditorHooks { */ public static function onRecentChangeSave( RecentChange $rc ) { $request = RequestContext::getMain()->getRequest(); - if ( $request->getBool( 'veswitched' ) && $rc->mAttribs['rc_this_oldid'] ) { + if ( $request->getBool( 'veswitched' ) && $rc->getAttribute( 'rc_this_oldid' ) ) { $rc->addTags( 'visualeditor-switched' ); } return true;