WordPress.org

Ready to get started?Download WordPress

Forums

Haiku minimalist audio player
Why is replacement of [audio: tags limited to only first one (2 posts)

  1. harikaram
    Member
    Posted 2 years ago #

    Line 64 in haiku-player.php:
    $content = preg_replace('/\[audio:/','[haiku url=',$content,1);

    ...limits the replacement to just the first instance. Any particular reason against removing this limitation?

    http://wordpress.org/extend/plugins/haiku-minimalist-audio-player/

  2. Dalton
    Member
    Plugin Author

    Posted 2 years ago #

    Hmm, looks like a mistake on my part. I'll update the plugin. It should be $content = preg_replace('/\[audio:/','[haiku url=',$content,-1); yeah?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic