• Resolved akedv

    (@ak71)


    hi, it seems that the wp-content is still hard-coded in some places (e.g. AsaCore.php), that’s not a very clean approach!

    i’m using a different name for the wp-content folder, so this plugin would causes lots of 404 if i wouldn’t use a redirect or edit the plugin-files.. till the next update 🙁

    please fix this, otherwise it’s a great great plugin and i keep on recommending it 🙂

    http://ww.wp.xz.cn/plugins/amazonsimpleadmin/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Timo

    (@worschtebrot)

    Thanks for your feedback. You are absolutely right. I fixed this in my dev version. Please support me and test it before I will release it.

    Get those two files and put them in your amazonsimpleadmin plugin dir:
    http://svn.wp-plugins.org/amazonsimpleadmin/trunk/AsaCore.php
    http://svn.wp-plugins.org/amazonsimpleadmin/trunk/AsaFunctions.php

    This should work with your custom wp-content installation. Please let me know.

    Thread Starter akedv

    (@ak71)

    hi, i just did, seems to work just fine, the AsaFunctions.php isn’t replacing any file, right?

    Plugin Author Timo

    (@worschtebrot)

    Great, happy to hear that it works.

    Right, AsaFunctions.php is new. I will add this fix to the next official update.

    Thanks for your help.

    Thread Starter akedv

    (@ak71)

    oder doch zu früh gefreut?

    Search "wp-content" (2 hits in 2 files)
    amazonsimpleadmin\AsaCore.php (1 hit)
    Line 12:     protected $plugin_dir = '/wp-content/plugins/amazonsimpleadmin';
    amazonsimpleadmin\AsaFunctions.php (1 hit)
    Line 9:         return get_bloginfo('wpurl') . '/wp-content/plugins/amazonsimpleadmin/' . $path;
    Plugin Author Timo

    (@worschtebrot)

    Nein, das passt schon.
    $plugin_dir wird nicht mehr verwendet, schmeiße ich bald mal raus.
    Und das andere in AsaFunctions.php auf Line 9 ist ein Fallback für meine lokale Entwicklungsumgebung, falls das Plugin per symlink eingebunden ist.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘wp-content path hard coded’ is closed to new replies.