Skip to content

Commit

Permalink
Fix code style issues, which I embarssingly somehow got by the linter (
Browse files Browse the repository at this point in the history
  • Loading branch information
mkaz authored and noisysocks committed Nov 14, 2018
1 parent 8bdd73e commit 3c8eb8e
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions gutenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,21 @@ function the_gutenberg_project() {
<noscript>
<div class="error" style="position:absolute;top:32px;z-index:40"><p>
<?php
// Using Gutenberg as Plugin
if ( is_plugin_active( 'gutenberg/gutenberg.php' ) ) {
$current_url = esc_url( add_query_arg( 'classic-editor', true, $_SERVER['REQUEST_URI'] ) );
printf(
__( 'The Block Editor requires JavaScript. You can use the <a href="%s">Classic Editor</a>.', 'gutenberg' ),
$current_url
) ;
} else { // Using Gutenberg in Core
printf(
__( 'The Block Editor requires JavaScript. Please try the <a href="%s">Classic Editor plugin</a>.', 'gutenberg' ),
'https://wordpress.org/plugins/classic-editor/'
) ;
}
// Using Gutenberg as Plugin.
if ( is_plugin_active( 'gutenberg/gutenberg.php' ) ) {
$current_url = esc_url( add_query_arg( 'classic-editor', true, $_SERVER['REQUEST_URI'] ) );
printf(
// Translators: link is to current page specify classic editor.
__( 'The Block Editor requires JavaScript. You can use the <a href="%s">Classic Editor</a>.', 'gutenberg' ),
$current_url
);
} else { // Using Gutenberg in Core.
printf(
// Translators: link is for Classic Editor plugin.
__( 'The Block Editor requires JavaScript. Please try the <a href="%s">Classic Editor plugin</a>.', 'gutenberg' ),
'https://wordpress.org/plugins/classic-editor/'
);
}
?>
</p></div>
</noscript>
Expand Down

0 comments on commit 3c8eb8e

Please sign in to comment.