easy-code-manager icon indicating copy to clipboard operation
easy-code-manager copied to clipboard

Feature request: Multisite support

Open dreaded369 opened this issue 1 year ago • 1 comments

Unfortunately currently on multisite snippets are enabled/disabled for all sites when modify from a single site.

Multisite support would ge great.

dreaded369 avatar Jul 24 '24 01:07 dreaded369

this was a problem when custom fonts were added to gutenberg... https://make.wordpress.org/core/2024/03/21/font-library-update-storage-of-font-files/. it's the same type of problem.

instead of using WP_CONTENT_DIR

wp_get_upload_dir() should be used instead like

$wp_upload_dir = wp_get_upload_dir();
$uploads_basedir = $wp_upload_dir['basedir'];
 return $uploads_basedir . '/fluent-snippet-storage';

this needs to be changed in ./app/Helpers/Helper.php and ./app/Services/CodeRunner.php

pull request submitted

hadamlenz avatar Sep 03 '25 14:09 hadamlenz