PATH:
home
/
lab2454c
/
gemition.com
/
wp-content
/
plugins
/
mailchimp-for-wp
/
includes
/
admin
/
migrations
<?php defined( 'ABSPATH' ) or exit; // move stylebuilders file to bundle $file = (string) get_option( 'mc4wp_custom_css_file', '' ); if ( empty( $file ) ) { return; } $uploads = wp_upload_dir(); // figure out absolute file path $prefix = str_replace( 'http:', '', $uploads['baseurl'] ); $relative_path = str_replace( $prefix, '', $file ); // get part before ? if ( strpos( $relative_path, '?' ) !== false ) { $parts = explode( '?', $relative_path ); $relative_path = array_shift( $parts ); } // This is the absolute path to the file, he he.. $file = $uploads['basedir'] . $relative_path; if ( file_exists( $file ) ) { // create directory, if necessary $dir = $uploads['basedir'] . '/mc4wp-stylesheets'; if ( ! file_exists( $dir ) ) { @mkdir( $dir, 0755 ); } @chmod( $dir, 0755 ); // Move file to new location $new_file = $dir . '/bundle.css'; $success = rename( $file, $new_file ); } // remove old option delete_option( 'mc4wp_custom_css_file' );
[-] 3.0.0-form-3-messages.php
[edit]
[-] 4.1.3-reschedule-event.php
[edit]
[+]
..
[-] 3.0.0-integration-options.php
[edit]
[-] 4.0.0-hidden-fields-value-delimiter.php
[edit]
[-] 4.1.2-flush-list-cache.php
[edit]
[-] 3.0.0-general-options.php
[edit]
[-] 4.8.2-move-debug-log-to-subdirectory.php
[edit]
[-] 3.0.0-form-1-post-type.php
[edit]
[-] 3.1.6-woocommerce-position-prefix.php
[edit]
[-] 4.0.0-groupings-to-interests.php
[edit]
[-] 3.0.0-styles-builder.php
[edit]
[-] 3.0.3-usage-tracking-schedule.php
[edit]
[-] 3.0.0-widget-base-id.php
[edit]
[-] 3.0.0-form-2-options.php
[edit]
[-] 4.0.7-rename-debug-log-file.php
[edit]
[-] 4.6.0-remove-lists-from-options.php
[edit]