Skip to content

Commit

Permalink
Misc tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
AlecRust committed Jan 14, 2024
1 parent c620768 commit 4c787b6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
16 changes: 9 additions & 7 deletions includes/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,10 @@ public function sanitize_checkbox_input($input)
public function render_settings_description()
{
echo '<p>' .
__('Global settings for the Protected Video plugin.', 'protected-video') .
__(
'Control the global settings for Protected Video below.',
'protected-video'
) .
'</p>';
}

Expand Down Expand Up @@ -234,7 +237,7 @@ public function render_color_input($val)
}

/**
* Render the "Disable right-click" checkbox field.
* Render the "Disable right-click" field.
*/
public function render_disable_right_click_checkbox($val)
{
Expand All @@ -249,12 +252,11 @@ public function render_disable_right_click_checkbox($val)
checked(1, $value, false)
);

printf(
'<p class="description">%s</p>',
echo '<p class="description">' .
__(
'Disables right-click on pages where a Protected Video is displayed.',
'Disables right-click on pages where a video is displayed.',
'protected-video'
)
);
) .
'</p>';
}
}
2 changes: 1 addition & 1 deletion readme.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ If the player is not looking or behaving like [the demo](https://protected-video

Please try disabling all other plugins one by one and switching to a default theme, to isolate which plugin or theme is causing the issue.

For performance reasons, Protected Video only loads its associated JS and CSS when it detects that a Gutenberg block or Shortcode is present on the page. If you insert a Protected Video in a non-standard way this detection may fail.
For performance reasons, Protected Video only loads its associated JS and CSS when it detects that a Gutenberg block or Shortcode is present on the page. If you insert a video in a non-standard way this detection may fail.

== Screenshots ==

Expand Down

0 comments on commit 4c787b6

Please sign in to comment.