Skip to content

Commit

Permalink
attribute_escape -> esc_attr
Browse files Browse the repository at this point in the history
  • Loading branch information
webgrrrl authored Jul 5, 2018
1 parent 77b7a8c commit b242090
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions wpomatic.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
/*
Plugin Name: WP-o-Matic
Plugin URI: https://github.com/webgrrrl/wp-o-matic
Plugin URI: http://themeskult.com/wp-o-matic/
Description: Automated posts via RSS feed aggregation.
Version: 2.4.1
Author: Themes Kult, webgrrrl
Version: 2.4.0
Author: Themes Kult
Author URI: http://themeskult.com/
*/

Expand Down Expand Up @@ -77,7 +77,7 @@ function WPOMatic()

# Cron command / url
$this->cron_url = $this->pluginpath . '/cron.php?code=' . get_option('wpo_croncode');
$this->cron_command = attribute_escape('*/20 * * * * '. $this->getCommand() . ' ' . $this->cron_url);
$this->cron_command = esc_attr('*/20 * * * * '. $this->getCommand() . ' ' . $this->cron_url);
}

/**
Expand Down Expand Up @@ -1945,7 +1945,7 @@ function adminProcessTools()
$this->adminUpdateCampaignPosts($id, array('post_author' => $authorid));
} else {
$this->errno = 1;
$this->errors = array('tools' => array(sprintf(__('Author %s not found', 'wpomatic'), attribute_escape($_REQUEST['campaign_tool_changeauthor']))));
$this->errors = array('tools' => array(sprintf(__('Author %s not found', 'wpomatic'), esc_attr($_REQUEST['campaign_tool_changeauthor']))));
}

$this->tool_success = __('Posts status updated', 'wpomatic');
Expand Down

0 comments on commit b242090

Please sign in to comment.