WordPress.org

Ready to get started?Download WordPress

Forums

Audio Player
[resolved] Can't build shortcode links for pages after WP 3.4 (4 posts)

  1. freeweaver
    Member
    Posted 1 year ago #

    I upgraded my sites to WordPress 3.4 over the weekend, and now I can't build Audio Player links from the Media Library anymore.
    I can put in the shortcode manually and everything else works, but no links. Any ideas?

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

  2. iagosrl
    Member
    Posted 1 year ago #

    Hi, I have the same problem but looking in Google and found a solution (that can help the developer) on other post on this forum.

    User 'mslocum' recommends do a change in the source code:

    FIX:
    In audio-player's plugin files, edit audio-player.php. Line 684: change value to data-link-url

    doryphores: I expect this can helps you to solve the fix the problem in the code (maybe needs some compability aditions to continue being compatible with previous wordpress versions). And thanks very much for the good work, the plugin works fine! (solving this, of course ;-)

  3. freeweaver
    Member
    Posted 1 year ago #

    Yep, that absolutely worked. Thanks!

  4. ftaveira
    Member
    Posted 1 year ago #

    audio-player.php. Line 684

    $form_fields["url"]["html"] .= "<button type='button' class='button urlaudioplayer audio-player-" . $post->ID . "' value='[audio:" . attribute_escape($file) . "]' title='[audio:" . attribute_escape($file) . "]'>Audio Player</button>";

    To this:

    $form_fields["url"]["html"] .= "<button type='button' class='button urlaudioplayer audio-player-" . $post->ID . "' data-link-url='[audio:" . attribute_escape($file) . "]' title='[audio:" . attribute_escape($file) . "]'>Audio Player</button>";

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic