WordPress.org

Ready to get started?Download WordPress

Forums

MathJax-LaTeX
multisite installation (1 post)

  1. andrea.cantieni
    Member
    Posted 2 years ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic