Skip to:
Content
Pages
Categories
Search
Top
Bottom

Developing plugins for 1.1 and 1.2

  • Avatar of peter-anselmo
    Peter Anselmo
    Participant

    @peter-anselmo

    Hi All,

    I searched around and couldn’t find anything on this, I apologize if it’s been covered elsewhere.

    What’s the best way to develop plugins that work on both 1.1 and 1.2 without modification?

    An obvious solution would be to have the plugin detect the version, and execute the appropriate code. This leads to my next question: how can I get the current installed version of buddypress? I searched the $bp global, but couldn’t find anything.

    Also, would this lead to bloated plugins?

    Alternately, I can develop for just 1.1 and depend on the backward compatibility plugin, but if I want to be proactive and develop for 1.2, are 1.1 users left in the cold?

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Avatar of John James Jacoby
    John James Jacoby
    Keymaster

    @johnjamesjacoby

    Plugins shouldn’t need to change very much between 1.1 and 1.2 versions. What’s changing mostly is the theme, and the removal of status updates and the wire component.

    Easiest way to get the BP version is to use the BP_VERSION constant, but again, chances are you won’t need to do that.

    Avatar of peter-anselmo
    Peter Anselmo
    Participant

    @peter-anselmo

    Ah, I didn’t know about the BP_VERSION constant, that’s perfect.

    I wrote a documents plugin that works great for 1.1, but is completely broken in 1.2 :-( I’m sure I won’t have to change much, so I’ll probably go the “check version” route.

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

You must be logged in to reply to this topic.