Codestyling Localization
[resolved] Localisation does not like it when WP_CONTENT is relocated (2 posts)

  1. anmari
    Posted 4 years ago #

    Cannot access localisation in site where WP_CONTENT has been relocated. Starts with a menu problem (dud link)

    $hook = add_management_page(__('WordPress Localization',CSP_PO_TEXTDOMAIN), __('Localization', CSP_PO_TEXTDOMAIN), 'manage_options',__FILE__, 'csp_po_main_page');

    $hook = add_management_page(__('WordPress Localization',CSP_PO_TEXTDOMAIN), __('Localization', CSP_PO_TEXTDOMAIN), 'manage_options','localisation', 'csp_po_main_page');

    but then had a number of other problems so gave up.
    Went to site that had normal WP_CONTENT_DIR and was better.


    But then the AJAX hangs locally (localhost) still not useable locally (usually fine remotely)

  2. codestyling
    Plugin Author

    Posted 4 years ago #

    I did a relocation at the end of wp-config.php like this:

    /** Absolute path to the WordPress directory. */
    if ( !defined('ABSPATH') )
    	define('ABSPATH', dirname(__FILE__) . '/');
    define( 'WP_CONTENT_DIR', ABSPATH . 'wp-codestyling' );
    define( 'WP_CONTENT_URL', 'http://wp33.de/wp-codestyling');
    define( 'PLUGINDIR', 'wp-codestyling/plugins' );
    define( 'MUPLUGINDIR', 'wp-codestyling/mu-plugins' );
    /** Sets up WordPress vars and included files. */
    require_once(ABSPATH . 'wp-settings.php');

    and all works as expected. Can't see any problem and can't reproduce it.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic