diff --git a/wpomatic.php b/wpomatic.php index 76e567a..c2effc5 100644 --- a/wpomatic.php +++ b/wpomatic.php @@ -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); } /** @@ -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');