示例#1
0
 function bw_trace_config_startup()
 {
     // Should this assume the same dir as __FILE__ - ie. always load from "oik" **?**
     require_once __DIR__ . '/oik_boot.php';
     /* Once oik_boot is loaded we can use oik_require2()
      * We load this up regardless of the defined values... assuming at least one of the values is set.
      */
     oik_require2("includes/bwtrace-config.php", "oik-bwtrace");
     bw_lazy_trace_config_startup();
 }
示例#2
0
/**
 * Filter 'the_content' using post-29608 filters
 *
 * Notes: 
 * - the filters are not invoked in the order coded below, you have to pay attention to the priorities as well
 * - wptexturize_blocks is intended to be run after shortcode expansion
 * - 
 * 
 * - Capital_P_dangit needs to be run after autop otherwise "Wordpress" on its own won't be processed.
 * 
 */
function trac_post_29608($value)
{
    if (!function_exists("do_shortcode_earlier")) {
        oik_require2("includes/shortcodes-earlier.php", "trac29608", "oik-css");
    }
    if (!function_exists("wptexturize_blocks")) {
        oik_require2("includes/formatting-later.php", "trac29608", "oik-css");
    }
    add_filter('the_content_post_29608', 'convert_smilies');
    add_filter('the_content_post_29608', 'convert_chars');
    add_filter('the_content_post_29608', 'do_shortcode_earlier', 11);
    add_filter('the_content_post_29608', 'wptexturize_blocks', 98);
    if (trac_29608_get_field("autop")) {
        add_filter('the_content_post_29608', 'wpautop_nobr', 100);
    }
    // There is no need for shortcode_unautop since we perform autop processing AFTER shortcode expansion
    //add_filter( 'the_content_post_29608', 'shortcode_unautop'  );
    add_filter('the_content_post_29608', 'prepend_attachment');
    add_filter('the_content_post_29608', 'capital_P_dangit', 101);
    //add_filter( 'the_content_post_29608', 'wpautop_nlbr', 102 );
    $result = apply_filters("the_content_post_29608", $value);
    return $result;
}