Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter bgrubin

    (@bgrubin)

    I did some additional digging. It looks like an interaction between WordPress MU Domain Mapping, the CDN rewriting in WPSC, and Soliloquy (and probably other plugins).

    Soliloquy gets the various image src properties by using wp_get_attachment_image_src(). This call appears to return the original, un-mapped domain. So then, when the CDN URL rewriting occurs in WPSC, it’s looking for URLs to rewrite using the *mapped* domain. Since the URLs generated by Soliloquy are referring to the unmapped domain, it doesn’t see them, and they don’t get rewritten.

    I hacked the Soliloquy plugin code to manually strip out unmapped domain and replace it with the mapped domain, which has temporarily fixed the issue.

    My questions now are:
    (a) Is it possible to get WPSC to look for *two* domains to rewrite to CDN, so that this type of issue is easily handled in the future?
    (b) What is the right way for plugins to get domain-mapped image src URLs?

    I know this isn’t strictly just a WPSC issue, but since you are also the author of MU Domain Mapping I thought this was a reasonable place for the thread.

    Thanks!

    I think my issue is similar to Rob. I can’t see how to put two CTA’s next to each other on the same line using shortcodes–the plugin calls wpautop() around each CTA.

    I’ve taken to editing the plugin and removed the wpautop() call around get_the_content() in hs_action.php. But I think it would be better if the plugin didn’t force each CTA to be in a <p></p>.

    If there is already a better way to do:
    [hs_action id=x] [hs_action id=y]

    And have them be on the same line, please let me know!

    Thanks,
    Ben

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