Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions options.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
)
Expand Down Expand Up @@ -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 <b>Base Location</b> and start with <code>/</code>.</br>Examples: <code>/custom-scss/</code> and <code>/custom-css/</code>';
print 'Location of your SCSS/CSS folders. Folders must be nested under your <b>Base Location</b> and start with <code>/</code>.'+
'</br>Examples: <code>/custom-scss/</code> and <code>/custom-css/</code>'+
'</br><b>Caution</b> 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';
Expand Down