<?php
include_once 'shortcodes-post.php';
include_once 'shortcodes-link.php';

/*
When apply shortcode callbacks for html tags,
WordPress will eliminate all protocols that are not in its supported list
So to keep something like data:image/png;base64, or javascript:...
We have to update the supported protocols
*/
add_filter('kses_allowed_protocols', 'dragblock_kses_allowed_protocols', 1);
function dragblock_kses_allowed_protocols($protocols)
{
    $protocols[] = 'data';
    $protocols[] = 'javascript';
    return $protocols;
}
