WordPress.org

Ready to get started?Download WordPress

Forums

Seriously Simple Podcasting
[resolved] Bug with WP 3.6 version check (6 posts)

  1. I've just found a bug when using the plugin with WP 3.6.1 and greater. In the audio_player() member function, the check for WP 3.6 and greater is currently:

    if( $wp_version && $wp_version == '3.6' ) {

    This is so that the wp_audio_shortcode() can be used instead of building the output manually. The problem, however, is that this only works if on WP 3.6, since it is using ==.

    The check should be updated to:

    if( $wp_version && $wp_version >= '3.6' ) {

    http://wordpress.org/plugins/seriously-simple-podcasting/

  2. Brad Touesnard
    Member
    Posted 10 months ago #

    Or better yet, use PHP's version_compare().

  3. Either would be fine.

  4. Hugh Lashbrooke
    Member
    Plugin Author

    Posted 10 months ago #

    Thanks for that - someone actually pointed that out in a different thread here and I've made the fix already using version_compare() (it was a stupid mistake on my part to leave that out). I'm just working on one other fix before I release the next version.

    I should have this out in the next day or two - in the mean time I suggest you do the fix manually in the plugin. I'll update here once it has been released.

  5. Hugh Lashbrooke
    Member
    Plugin Author

    Posted 10 months ago #

    Looks like I found a quick way to fix the other bug I mentioned and I've just published this release sooner than I thought I would. v1.7.3 should be available now with a proper version comparison: http://wordpress.org/plugins/seriously-simple-podcasting/changelog/.

    Thanks for pointing this out!

  6. Great!

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.