WordPress.org

Support

Support » Plugins and Hacks » papercite » [Resolved] [Plugin: papercite] multi-site data dir

[Resolved] [Plugin: papercite] multi-site data dir

  • Hi

    I’ve just add the following line to getDataFile() so it also search in
    WP_CONTENT_DIR/blogs.dir/<blog number>/papercite-data

    global $wpdb;
    $blog_id_root=is_multisite() ? ‘/blogs.dir/’.$wpdb->blogid.’/files/’ : ‘/uploads/’;

    $path = WP_CONTENT_DIR . $blog_id_root .”papercite-data/$path/$uri”;
    if (file_exists($path)) return $path;

    http://wordpress.org/extend/plugins/papercite/

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] [Plugin: papercite] multi-site data dir’ is closed to new replies.
Skip to toolbar