Skip to content

Commit

Permalink
Remove quotes from translation function
Browse files Browse the repository at this point in the history
Fix #747
  • Loading branch information
esudalaimadan committed Oct 4, 2020
1 parent 774bca1 commit 7110849
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions include/Core/Cron/CronListTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,21 +104,23 @@ public function prepare_items() {
*/
public function column_col_cron_due( $item ) {
$actions = array(
'delete' => sprintf( '<a href="?page=%s&bd_action=%s&cron_id=%s&%s=%s">%s</a>',
$_REQUEST['page'],
'delete' => sprintf(
'<a href="?page=%s&bd_action=%s&cron_id=%s&%s=%s">%s</a>',
sanitize_text_field( $_REQUEST['page'] ),
'delete_cron',
$item['id'],
'bd-delete_cron-nonce',
wp_create_nonce( 'bd-delete_cron' ),
__( 'Delete', 'bulk-delete' )
),
'run' => sprintf( '<a href="?page=%s&bd_action=%s&cron_id=%s&%s=%s" onclick="return confirm(%s)">%s</a>',
$_REQUEST['page'],
'run' => sprintf(
'<a href="?page=%s&bd_action=%s&cron_id=%s&%s=%s" onclick="return confirm(%s)">%s</a>',
sanitize_text_field( $_REQUEST['page'] ),
'run_cron',
$item['id'],
'bd-run_cron-nonce',
wp_create_nonce( 'bd-run_cron' ),
__( "'Are you sure you want to run the schedule job manually'", 'bulk-delete' ),
"'" . __( 'Are you sure you want to run the schedule job manually', 'bulk-delete' ) . "'",
__( 'Run Now', 'bulk-delete' )
),
);
Expand Down

0 comments on commit 7110849

Please sign in to comment.