GithubHelp home page GithubHelp logo

Comments (3)

iandunn avatar iandunn commented on May 28, 2024

This happens when the [bgmp-map] shortcode callback calls getMapPlacemarks(), which then calls 'details' => apply_filters( 'the_content', $pp->post_content )`.

do_shortcode() is a callback for the_content, and Jetpack's sharing_display() is also a callback for the_content(), so it could be related to the nested or conflicting the_content callbacks.

sharing_display() returns early to prevent outputting the markup multiple times, which is probably what's happening here.

I'm not sure yet if BGMP is doing something wrong, or if Jetpack is, or if it's just a conflict and neither is at fault. I've run out of time today, though, so I'll have to look at it again some other time.

from jetpack.

dereksmart avatar dereksmart commented on May 28, 2024

I just looked into this briefly and Ian is right, there's some the_content competition going on.

Since they are using apply_filters('the_content') to get their map description, our likes, shares, and even related posts are trying to load themselves onto that filter which is applied here: https://cloudup.com/cAprgqRSA27

Of course, a simple fix would be for them to namespace their filter hook to something like bgmp_the_content, but they would lose formatting.

from jetpack.

jeherve avatar jeherve commented on May 28, 2024

Closing this for now because of the lack of activity on this. We can always reopen in the future if needed.

from jetpack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.