Plugin Directory

Changeset 3433883


Ignore:
Timestamp:
01/06/2026 07:44:06 PM (6 weeks ago)
Author:
MrViSiOn
Message:

Fix: Premium plugins/themes updates detection v1.0.54

Location:
multi-connect/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • multi-connect/trunk/includes/class-multi-connect-api.php

    r3265890 r3433883  
    646646        // Verificar actualizaciones de plugins.
    647647        get_plugin_updates();
    648         try {
    649             $transient = (object) array(
    650                 'last_checked' => time() - ( 13 * 3600 ),
    651                 'checked'      => array( 'default' => 'none' ),
    652                 'response'     => array( 'default' => 'none' ),
    653             );
    654             apply_filters( 'pre_set_site_transient_update_plugins', $transient, 'update_plugins' );
    655         } catch ( Throwable $e ) {
    656             $transient;
    657         }
     648
     649        // Obtener el transient actual y forzar que los plugins premium agreguen sus actualizaciones.
    658650        $plugins = get_site_transient( 'update_plugins' );
     651        if ( $plugins ) {
     652            // Aplicar el filtro con el transient real para que plugins premium puedan inyectar sus actualizaciones.
     653            try {
     654                $plugins = apply_filters( 'pre_set_site_transient_update_plugins', $plugins, 'update_plugins' );
     655            } catch ( Throwable $e ) {
     656                // Si hay error, continuar con el transient original.
     657            }
     658        }
    659659        if ( $plugins && ! empty( $plugins->response ) ) {
    660660            foreach ( $plugins->response as $plugin_file => $plugin_data ) {
     
    672672        // Verificar actualizaciones de temas.
    673673        get_theme_updates();
    674         try {
    675             $transient       = (object) array(
    676                 'last_checked' => time() - ( 13 * 3600 ),
    677                 'checked'      => array( 'default' => 'none' ),
    678                 'response'     => array( 'default' => 'none' ),
    679             );
    680             $updatesFromHook = apply_filters( 'pre_set_site_transient_update_themes', $transient, 'update_themes' );
    681         } catch ( Throwable $e ) {
    682             $updatesFromHook = $transient;
    683         }
     674
     675        // Obtener el transient actual y forzar que los temas premium agreguen sus actualizaciones.
    684676        $themes = get_site_transient( 'update_themes' );
     677        if ( $themes ) {
     678            // Aplicar el filtro con el transient real para que temas premium puedan inyectar sus actualizaciones.
     679            try {
     680                $themes = apply_filters( 'pre_set_site_transient_update_themes', $themes, 'update_themes' );
     681            } catch ( Throwable $e ) {
     682                // Si hay error, continuar con el transient original.
     683            }
     684        }
    685685        if ( $themes && ! empty( $themes->response ) ) {
    686686            foreach ( $themes->response as $theme_slug => $theme_data ) {
  • multi-connect/trunk/multi-connect.php

    r3419505 r3433883  
    44 * Plugin URI: https://multi-wp.com
    55 * Description: Connect your WordPress site with Multi-WP for centralized management and updates.
    6  * Version: 1.0.53
     6 * Version: 1.0.54
    77 * Requires at least: 5.8
    88 * Requires PHP: 7.4
  • multi-connect/trunk/readme.txt

    r3419505 r3433883  
    55Tested up to: 6.9
    66Requires PHP: 7.4
    7 Stable tag: 1.0.53
     7Stable tag: 1.0.54
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    4444
    4545== Changelog ==
     46
     47= 1.0.54 =
     48* Fixed: Premium plugins and themes updates now detected correctly (WPCode Pro, etc.)
    4649
    4750= 1.0.53 =
Note: See TracChangeset for help on using the changeset viewer.