• Resolved tmuikku

    (@tmuikku)


    Yello,

    could you move these definitions inside the cf7bs_maybe_init() function please.

    define( 'CF7BS_MAINFILE', __FILE__ );
    define( 'CF7BS_PATH', untrailingslashit( plugin_dir_path( CF7BS_MAINFILE ) ) );
    define( 'CF7BS_URL', untrailingslashit( plugin_dir_url( CF7BS_MAINFILE ) ) );
    define( 'CF7BS_BASENAME', plugin_basename( CF7BS_MAINFILE ) );

    I’ve got multisite setup which uses domain mapping, eg. subdomain sites have their own TLD domains.

    Now your plugin sets the urls before domain mapping has its filters set. Urls should be set after all plugins loaded, in the cf7bs_maybe_init() function.

    At the moment your plugin assets get different domain than the site has, and this affects things like minification.

    Thanks

    https://ww.wp.xz.cn/plugins/bootstrap-for-contact-form-7/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Felix Arntz

    (@flixos90)

    Hi tmuikku,

    thanks for letting me know. I did not consider multisites when I initially developed the plugin. If you find any more caveats there, I’d appreciate if you made me aware.

    I will take care of your above proposal in the next release.

    Plugin Author Felix Arntz

    (@flixos90)

    Hi again,

    sorry it took a while, but I just released a new version with a fix to your issue. Hope it works now!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Plugin directory constant definitions’ is closed to new replies.