Support » Plugin: Audio Player » [Plugin: Audio Player] Can't build shortcode links for pages after WP 3.4

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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 😉

    freeweaver

    (@freeweaver)

    Yep, that absolutely worked. Thanks!

    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>”;

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Audio Player] Can't build shortcode links for pages after WP 3.4’ is closed to new replies.