Import legacy nurinda.co.id website
This commit is contained in:
1 parent
3f59bb9038
commit
6e21646ac4
13389 files changed
+3246690
No files matched your search
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
class us_migration_4_7 extends US_Migration_Translator {
|
||||
|
||||
// Options
|
||||
public function translate_theme_options( &$options ) {
|
||||
if ( isset( $options['generate_css_file'] ) AND $options['generate_css_file'] ) {
|
||||
$upload_dir = wp_upload_dir();
|
||||
if ( wp_is_writable( $upload_dir['basedir'] ) ) {
|
||||
$options['optimize_assets'] = TRUE;
|
||||
}
|
||||
}
|
||||
unset( $options['generate_css_file'] );
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user