diff --git a/options.php b/options.php
index 3044f29e..2bbcfefc 100644
--- a/options.php
+++ b/options.php
@@ -88,7 +88,8 @@ public function page_init()
'name' => 'base_compiling_folder',
'type' => apply_filters( 'wp_scss_base_compiling_modes',
array(
- get_stylesheet_directory() => 'Current theme',
+ get_template_directory() => 'Parent theme', // Won't display if no parent theme as it would have duplicate keys in array
+ get_stylesheet_directory() => (get_stylesheet_directory() === get_template_directory() ? 'Current theme' : 'Child theme'),
wp_get_upload_dir()['basedir'] => 'Uploads directory',
WPSCSS_PLUGIN_DIR => 'WP-SCSS Plugin',
)
@@ -246,7 +247,9 @@ public function sanitize( $input ) {
* Print the Section text
*/
public function print_paths_info() {
- print 'Location of your SCSS/CSS folders. Folders must be nested under your Base Location and start with /.Examples: /custom-scss/ and /custom-css/';
+ print 'Location of your SCSS/CSS folders. Folders must be nested under your Base Location and start with /.'+
+ 'Examples: /custom-scss/ and /custom-css/'+
+ 'Caution updating some themes or plugins will delete the custom WP-SCSS Base Location when nested.';
}
public function print_compile_info() {
print 'Choose how you would like SCSS and source maps to be compiled and how you would like the plugin to handle errors';