_get_valid_types(); foreach ($info['urls'] as $field => $value) { if (in_array($field, $valid_types)) { $result[$field] = strip_tags($value); } } } } update_post_meta($info['post_id'], 'backend_url_images', $result); } } } function admin_menu() { add_meta_box('comicpress-post-media-handling', __('ComicPress Post Media', 'comicpress'), array('ComicPressPostMediaHandlingMetabox', 'metabox'), 'post', 'normal', 'low'); } function metabox() { global $post; $media_info = get_post_meta($post->ID, 'backend_url_images', true); if (!is_array($media_info)) { $media_info = array(); } $nonce = wp_create_nonce('comicpress'); $action_nonce = wp_create_nonce('comicpress-post-media-update'); include('partials/post-media-handling/metabox.inc'); } }