• Resolved maylene

    (@maylene)


    Thanks for the public Beta. I have a site with a custom content folder for better security. Unfortunately, the plugin has wp-content hardcoded in a few files:

    • admin/lib/Libsyn/Post.php
    • admin/settings.php
    • admin/support.php

    Search the plugin directory for “wp-content” to find all instances. This post provides the breadcrumbs necessary for others to fix while we await the next update.

    In most cases, I swapped plugins_url() for clarity and brevity. Take Post.php for example, line 295.

    Current:
    $("#libsyn-player-settings-page-dialog").load("<?php _e(get_site_url()); ?>/wp-content/plugins/<?php _e(LIBSYN_DIR); ?>/admin/views/box_playersettings.php", function() {

    Mine:
    $("#libsyn-player-settings-page-dialog").load("<?php _e(plugins_url( LIBSYN_DIR . '/admin/views/box_playersettings.php')); ?>", function() {

    I’m open to better code, but this is working at the moment. Cheers!

    https://www.ads-software.com/plugins/libsyn-podcasting/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Fixing hardcoded wp-content path’ is closed to new replies.