Skip to content

Commit

Permalink
Some phpcs fixes for code involved in this PR.
Browse files Browse the repository at this point in the history
  • Loading branch information
kwight committed Apr 26, 2019
1 parent 7d2ee54 commit 92ac7fe
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions modules/calypsoify/class.jetpack-calypsoify.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
<?php
/*
/**
* This is Calypso skin of the wp-admin interface that is conditionally triggered via the ?calypsoify=1 param.
* Ported from an internal Automattic plugin.
*/

*/
class Jetpack_Calypsoify {
static $instance = false;

/**
* Singleton instance of `Jetpack_Calypsoify`.
*
* @var object
*/
public static $instance = false;

/**
* Is Calypsoify enabled, based on any value of `calypsoify` user meta.
*
* @var bool
*/
public $is_calypsoify_enabled = false;

private function __construct() {
Expand Down Expand Up @@ -372,6 +382,11 @@ public function get_close_gutenberg_url() {
return $this->get_calypso_url();
}

/**
* Returns the URL for switching the user's editor to the Calypso (WordPress.com Classic) editor.
*
* @return string
*/
public function get_switch_to_classic_editor_url() {
return add_query_arg(
'set-editor',
Expand Down

0 comments on commit 92ac7fe

Please sign in to comment.