Skip to content

Commit

Permalink
Fix escaping bugs.
Browse files Browse the repository at this point in the history
  • Loading branch information
boonebgorges committed May 21, 2021
1 parent d1f4d62 commit 7dce368
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion includes/module-base.php
Original file line number Diff line number Diff line change
@@ -110,7 +110,7 @@ public function admin_op_page() {
<table class="form-table">
<tr>
<th scope="row">
<label for="pressforward-dashboard-enable"><?php echo esc_html( sprintf( _e( 'Enable %s', 'pressforward' ), $modsetup['name'] ) ); ?></label>
<label for="pressforward-dashboard-enable"><?php echo esc_html( sprintf( __( 'Enable %s', 'pressforward' ), $modsetup['name'] ) ); ?></label>
</th>

<td>
3 changes: 2 additions & 1 deletion parts/settings/tab-user-control.tpl.php
Original file line number Diff line number Diff line change
@@ -2,7 +2,8 @@

?>
<p>
<?php esc_html_e( 'The default WordPress settings for drafting, editing, and publishing a post remain the same regardless of other PressForward Settings. For more details visit <a href="https://codex.wordpress.org/Roles_and_Capabilities">Roles and Capabilities</a>. To change the default roles for new users visit <a href="/wp-admin/options-general.php">Admin &#187; Settings &#187; General Settings</a>. To change user roles and capabilities, edit them at <a href="/wp-admin/users.php">Admin &#187; Users</a>.<br /><br />The additional preferences below determine the type of access granted to each user role within the PressForward plugin. The user roles allowed by PressForward in order of most restrictive to least restrictive include: Administrator, Editor, Contributor, and Subscriber.', 'pf' ); ?>
<?php // phpcs:ignore WordPress.Security.EscapeOutput ?>
<?php _e( 'The default WordPress settings for drafting, editing, and publishing a post remain the same regardless of other PressForward Settings. For more details visit <a href="https://codex.wordpress.org/Roles_and_Capabilities">Roles and Capabilities</a>. To change the default roles for new users visit <a href="/wp-admin/options-general.php">Admin &#187; Settings &#187; General Settings</a>. To change user roles and capabilities, edit them at <a href="/wp-admin/users.php">Admin &#187; Users</a>.<br /><br />The additional preferences below determine the type of access granted to each user role within the PressForward plugin. The user roles allowed by PressForward in order of most restrictive to least restrictive include: Administrator, Editor, Contributor, and Subscriber.', 'pf' ); ?>
</p>
<hr />
<?php

0 comments on commit 7dce368

Please sign in to comment.