WordPress.org

Support

Support » Plugins and Hacks » [Plugin: MathJax-LaTeX] multisite installation

[Plugin: MathJax-LaTeX] multisite installation

  • andrea.cantieni
    Member

    @andreacantieni

    I tried to install the plugin in a multisite enabled WordPress installation and encountered some issues. I suggest the following modifications:
    1) inside function init():
    add_action('admin_footer', array(__CLASS__, 'add_script'));
    add_action('admin_footer', array(__CLASS__, 'unconditional'));
    to enable script in admin pages.
    2) line 100:
    'syntax' => get_option('latex_syntax')?:'inline'
    to set syntax, if no db entry exists (occurs in multisite installations if you are not the site admin, who installed the plugin).
    3) line 358/359:
    $config_file = get_option('mathjax_location')?:plugins_url("MathJax/MathJax.js",__FILE__);
    $config_file = str_replace('MathJax.js', 'config/'.(get_option('mathjax_config')?:'default').'.js', $config_file);
    to get location and config, if no db entry exists (occurs in multisite installations if you are not the site admin and you open the admin section before any other page containing latex-syntax).

    http://wordpress.org/extend/plugins/mathjax-latex/

  • The topic ‘[Plugin: MathJax-LaTeX] multisite installation’ is closed to new replies.