Skip to content

Commit

Permalink
fix phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
zlzleking committed Feb 25, 2023
1 parent b65ef1c commit 2b27ce6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LibertyTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ protected function contentsToolbox() {
// The JS will transform the edit button *above* into the VE-ful one,
// whereas _this_ one will become the "edit source" button
if ( $hasVisualEditor ) {
if ( $action !== 'edit' && $editable == true) {
if ( $action !== 'edit' && $editable == true ) {
$editLabel = 'visualeditor-ca-editsource';
echo $linkRenderer->makeKnownLink(
$title,
Expand Down

0 comments on commit 2b27ce6

Please sign in to comment.