quotes are not magic
This commit is contained in:
parent
f3c2fa1e1c
commit
05d9e1bc56
@ -575,7 +575,7 @@ class ComicPressAddonCore extends ComicPressAddon {
|
||||
function handle_update_override_partial($info) {
|
||||
switch ($info['action']) {
|
||||
case __('Update partial', 'comicpress'):
|
||||
$this->comicpress->comicpress_options['override_partials'][$info['partial']] = $info['code'];
|
||||
$this->comicpress->comicpress_options['override_partials'][$info['partial']] = stripslashes($info['code']);
|
||||
break;
|
||||
case __('Delete override partial', 'comicpress'):
|
||||
unset($this->comicpress->comicpress_options['override_partials'][$info['partial']]);
|
||||
|
@ -18,12 +18,6 @@ function __comicpress_init() {
|
||||
$comicpress->init();
|
||||
$addons = array();
|
||||
|
||||
if (get_magic_quotes_gpc()) {
|
||||
$_POST = array_map('stripslashes_deep', $_POST);
|
||||
$_GET = array_map('stripslashes_deep', $_GET);
|
||||
$_REQUEST = array_map('stripslashes_deep', $_REQUEST);
|
||||
}
|
||||
|
||||
if (is_dir($addons_dir = (dirname(__FILE__) . '/addons'))) {
|
||||
$entries = glob($addons_dir . '/*');
|
||||
if (is_array($entries)) {
|
||||
|
Loading…
Reference in New Issue
Block a user