Support » Plugin: WP PageNavi Style » [Plugin: WP PageNavi Style] wrong url if moved to another folder (mu-plugins)

  • hello,

    i move wp-pagenavi-style to inner folder at mu-plugins folder, and i found some broken urls there.
    here is my code to fixed the bug [started at line 49 file wp-pagenavi-style.php] :

    //define(‘WP_PAGENAVI_STYLE_PATH’,WP_CONTENT_URL.’/plugins/wp-pagenavi-style/’);
    define(‘WP_PAGENAVI_STYLE_PATH’,WP_CONTENT_URL.str_ireplace(WP_CONTENT_DIR, ”, dirname(__FILE__)).”/”);
    //define(‘WP_PAGENAVI_STYLE_CSS_PATH’,plugin_dir_path(__FILE__).’/css’);
    define(‘WP_PAGENAVI_STYLE_CSS_PATH’, WP_PAGENAVI_STYLE_CSS_PATH.’css’);

    //…end

    by using that patch you may move the plugins anywhere in your wordpress folder.
    in my case, i move it to folder mu-plugins/plugs/wp-pagenavy-style

    http://wordpress.org/extend/plugins/wp-pagenavi-style/

  • The topic ‘[Plugin: WP PageNavi Style] wrong url if moved to another folder (mu-plugins)’ is closed to new replies.