Plugin Directory

Changeset 3207605


Ignore:
Timestamp:
12/13/2024 12:38:08 PM (16 months ago)
Author:
atakanoz
Message:

hotfix for alter-media

Location:
alter-media
Files:
15 edited
9 copied

Legend:

Unmodified
Added
Removed
  • alter-media/tags/1.0.1/README.md

    r3207530 r3207605  
    55Requires at least: 4.7
    66Tested up to: 6.7
    7 Stable tag: 1.0.0
     7Stable tag: 1.0.1
    88Requires PHP: 7.3.5
    99License: GPLv2 or later
     
    8282- Implemented filtering system
    8383- Added visual indicators for attribute status
     84
     85= 1.0.1 =
     86
     87- Composer package updated
  • alter-media/tags/1.0.1/alter-media.php

    r3207521 r3207605  
    44 * Plugin URI:        https://matterwp.com/plugins/alter
    55 * Description:       A WordPress plugin to filter media library by alternative text and caption.
    6  * Version:           1.0.0
     6 * Version:           1.0.1
    77 * Author:            MatterWP
    88 * Author URI:        https://matterwp.com
     
    3434 */
    3535define( 'ALTER_NAME', 'alter-media' );
    36 define( 'ALTER_VERSION', '1.0.0' );
     36define( 'ALTER_VERSION', '1.0.1' );
    3737define( 'ALTER_FILE', __FILE__ );
    3838define( 'ALTER_PLUGIN_DIR', trailingslashit( dirname( ALTER_FILE ) ) );
  • alter-media/tags/1.0.1/composer.json

    r3207521 r3207605  
    1717    ],
    1818    "require": {
    19         "matterwp/wp-subscription-manager": "^0.0.3"
     19        "matterwp/wp-subscription-manager": "^0.0.4"
    2020    }
    2121}
  • alter-media/tags/1.0.1/vendor/composer/installed.json

    r3207521 r3207605  
    33        {
    44            "name": "matterwp/wp-subscription-manager",
    5             "version": "v0.0.3",
    6             "version_normalized": "0.0.3.0",
     5            "version": "v0.0.4",
     6            "version_normalized": "0.0.4.0",
    77            "source": {
    88                "type": "git",
    99                "url": "https://github.com/matterwp/matterwp-subscription-manager.git",
    10                 "reference": "482ebdc19603dad0830850481c36a22daea5d888"
     10                "reference": "1676660b867fea389259dee6d6b80a92c2090c04"
    1111            },
    1212            "dist": {
    1313                "type": "zip",
    14                 "url": "https://api.github.com/repos/matterwp/matterwp-subscription-manager/zipball/482ebdc19603dad0830850481c36a22daea5d888",
    15                 "reference": "482ebdc19603dad0830850481c36a22daea5d888",
     14                "url": "https://api.github.com/repos/matterwp/matterwp-subscription-manager/zipball/1676660b867fea389259dee6d6b80a92c2090c04",
     15                "reference": "1676660b867fea389259dee6d6b80a92c2090c04",
    1616                "shasum": ""
    1717            },
     
    1919                "php": ">=7.3.5"
    2020            },
    21             "time": "2024-12-13T09:30:03+00:00",
     21            "time": "2024-12-13T12:28:35+00:00",
    2222            "type": "wordpress-plugin",
    2323            "installation-source": "dist",
     
    4040            "support": {
    4141                "issues": "https://github.com/matterwp/matterwp-subscription-manager/issues",
    42                 "source": "https://github.com/matterwp/matterwp-subscription-manager/tree/v0.0.3"
     42                "source": "https://github.com/matterwp/matterwp-subscription-manager/tree/v0.0.4"
    4343            },
    4444            "install-path": "../matterwp/wp-subscription-manager"
  • alter-media/tags/1.0.1/vendor/composer/installed.php

    r3207521 r3207605  
    44        'pretty_version' => 'dev-main',
    55        'version' => 'dev-main',
    6         'reference' => '69331a7b53fe64920453f9d6f9b6136df825dddd',
     6        'reference' => '562b6f2f45c5201fe342de64db2b16f071ff9010',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    1414            'pretty_version' => 'dev-main',
    1515            'version' => 'dev-main',
    16             'reference' => '69331a7b53fe64920453f9d6f9b6136df825dddd',
     16            'reference' => '562b6f2f45c5201fe342de64db2b16f071ff9010',
    1717            'type' => 'library',
    1818            'install_path' => __DIR__ . '/../../',
     
    2121        ),
    2222        'matterwp/wp-subscription-manager' => array(
    23             'pretty_version' => 'v0.0.3',
    24             'version' => '0.0.3.0',
    25             'reference' => '482ebdc19603dad0830850481c36a22daea5d888',
     23            'pretty_version' => 'v0.0.4',
     24            'version' => '0.0.4.0',
     25            'reference' => '1676660b867fea389259dee6d6b80a92c2090c04',
    2626            'type' => 'wordpress-plugin',
    2727            'install_path' => __DIR__ . '/../matterwp/wp-subscription-manager',
  • alter-media/tags/1.0.1/vendor/matterwp/wp-subscription-manager/src/Diagnosis.php

    r3207521 r3207605  
    99class Diagnosis {
    1010    /**
     11     * SubscriptionManager instance
     12     *
     13     * @var SubscriptionManager
     14     */
     15    private static $manager;
     16
     17    /**
     18     * Set the SubscriptionManager instance
     19     *
     20     * @param SubscriptionManager $manager
     21     */
     22    public static function set_manager( SubscriptionManager $manager ) {
     23        self::$manager = $manager;
     24    }
     25
     26    /**
    1127     * Retrieves comprehensive system information about the WordPress installation
    1228     *
     
    1531    public static function get_system_info() {
    1632        $data = array(
     33            'plugin_slug'        => self::safely_run( 'get_plugin_slug' ),
    1734            'email'              => self::safely_run( 'get_admin_email' ),
    1835            'website_url'        => self::safely_run( 'get_site_url' ),
     
    302319        wp_send_json_success( self::get_system_info() );
    303320    }
     321
     322    /**
     323     * Gets the plugin slug from the Config instance
     324     *
     325     * @return string Plugin slug or empty string on failure
     326     */
     327    private static function get_plugin_slug() {
     328        if (!isset(self::$manager)) {
     329            return '';
     330        }
     331
     332        try {
     333            $config = self::$manager->get_config();
     334            return $config ? sanitize_key($config->get('plugin_slug')) : '';
     335        } catch (\Exception $e) {
     336            return '';
     337        }
     338    }
    304339}
  • alter-media/tags/1.0.1/vendor/matterwp/wp-subscription-manager/src/SubscriptionManager.php

    r3207521 r3207605  
    3030        $this->config       = new Config( $settings );
    3131        $this->welcome_page = new WelcomePage( $this->config );
     32
     33        // Set the manager instance for Diagnosis
     34        Diagnosis::set_manager( $this );
    3235
    3336        $this->setup_hooks();
     
    8891        return admin_url( 'admin.php?page=' . $this->config->get( 'plugin_slug' ) . '-welcome' );
    8992    }
     93
     94    /**
     95     * Get the config instance
     96     *
     97     * @return Config
     98     */
     99    public function get_config() {
     100        return $this->config;
     101    }
    90102}
  • alter-media/tags/1.0.1/vendor/matterwp/wp-subscription-manager/src/SubscriptionManagerFactory.php

    r3207521 r3207605  
    3434        $settings = self::prepareSettings( $settings );
    3535
    36         return new SubscriptionManager( $settings );
     36        $manager = new SubscriptionManager( $settings );
     37        return $manager;
    3738    }
    3839
  • alter-media/tags/1.0.1/vendor/matterwp/wp-subscription-manager/templates/welcome-page.php

    r3207521 r3207605  
    106106    transition: all 0.3s ease;
    107107    background-color:
    108         <?php
    109         echo esc_attr( $btn_color );
    110         ?>
    111     ;
     108        <?php echo esc_attr($btn_color);
     109    ?>;
    112110}
    113111
    114112.btn-subscribe:hover {
    115113    background-color:
    116         <?php
    117         echo esc_attr( $btn_hover );
    118         ?>
    119     ;
     114        <?php echo esc_attr($btn_hover);
     115    ?>;
    120116}
    121117
     
    300296                }
    301297
    302                 if (this.isSkipped) {
    303                     setTimeout(() => {
    304                         window.location.href = '<?php echo esc_js( $after_subscription_url ); ?>';
    305                     }, 0);
    306                 } else {
    307                     setTimeout(() => {
    308                         window.location.href = '<?php echo esc_js( $after_subscription_url ); ?>';
    309                     }, 1500);
    310                 }
     298                setTimeout(() => {
     299                    window.location.href = '<?php echo esc_js( $after_subscription_url ); ?>';
     300                }, 1000);
    311301            } catch (error) {
    312302                console.error('Error:', error);
  • alter-media/trunk/README.md

    r3207530 r3207605  
    55Requires at least: 4.7
    66Tested up to: 6.7
    7 Stable tag: 1.0.0
     7Stable tag: 1.0.1
    88Requires PHP: 7.3.5
    99License: GPLv2 or later
     
    8282- Implemented filtering system
    8383- Added visual indicators for attribute status
     84
     85= 1.0.1 =
     86
     87- Composer package updated
  • alter-media/trunk/alter-media.php

    r3207521 r3207605  
    44 * Plugin URI:        https://matterwp.com/plugins/alter
    55 * Description:       A WordPress plugin to filter media library by alternative text and caption.
    6  * Version:           1.0.0
     6 * Version:           1.0.1
    77 * Author:            MatterWP
    88 * Author URI:        https://matterwp.com
     
    3434 */
    3535define( 'ALTER_NAME', 'alter-media' );
    36 define( 'ALTER_VERSION', '1.0.0' );
     36define( 'ALTER_VERSION', '1.0.1' );
    3737define( 'ALTER_FILE', __FILE__ );
    3838define( 'ALTER_PLUGIN_DIR', trailingslashit( dirname( ALTER_FILE ) ) );
  • alter-media/trunk/composer.json

    r3207521 r3207605  
    1717    ],
    1818    "require": {
    19         "matterwp/wp-subscription-manager": "^0.0.3"
     19        "matterwp/wp-subscription-manager": "^0.0.4"
    2020    }
    2121}
  • alter-media/trunk/vendor/composer/installed.json

    r3207521 r3207605  
    33        {
    44            "name": "matterwp/wp-subscription-manager",
    5             "version": "v0.0.3",
    6             "version_normalized": "0.0.3.0",
     5            "version": "v0.0.4",
     6            "version_normalized": "0.0.4.0",
    77            "source": {
    88                "type": "git",
    99                "url": "https://github.com/matterwp/matterwp-subscription-manager.git",
    10                 "reference": "482ebdc19603dad0830850481c36a22daea5d888"
     10                "reference": "1676660b867fea389259dee6d6b80a92c2090c04"
    1111            },
    1212            "dist": {
    1313                "type": "zip",
    14                 "url": "https://api.github.com/repos/matterwp/matterwp-subscription-manager/zipball/482ebdc19603dad0830850481c36a22daea5d888",
    15                 "reference": "482ebdc19603dad0830850481c36a22daea5d888",
     14                "url": "https://api.github.com/repos/matterwp/matterwp-subscription-manager/zipball/1676660b867fea389259dee6d6b80a92c2090c04",
     15                "reference": "1676660b867fea389259dee6d6b80a92c2090c04",
    1616                "shasum": ""
    1717            },
     
    1919                "php": ">=7.3.5"
    2020            },
    21             "time": "2024-12-13T09:30:03+00:00",
     21            "time": "2024-12-13T12:28:35+00:00",
    2222            "type": "wordpress-plugin",
    2323            "installation-source": "dist",
     
    4040            "support": {
    4141                "issues": "https://github.com/matterwp/matterwp-subscription-manager/issues",
    42                 "source": "https://github.com/matterwp/matterwp-subscription-manager/tree/v0.0.3"
     42                "source": "https://github.com/matterwp/matterwp-subscription-manager/tree/v0.0.4"
    4343            },
    4444            "install-path": "../matterwp/wp-subscription-manager"
  • alter-media/trunk/vendor/composer/installed.php

    r3207521 r3207605  
    44        'pretty_version' => 'dev-main',
    55        'version' => 'dev-main',
    6         'reference' => '69331a7b53fe64920453f9d6f9b6136df825dddd',
     6        'reference' => '562b6f2f45c5201fe342de64db2b16f071ff9010',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    1414            'pretty_version' => 'dev-main',
    1515            'version' => 'dev-main',
    16             'reference' => '69331a7b53fe64920453f9d6f9b6136df825dddd',
     16            'reference' => '562b6f2f45c5201fe342de64db2b16f071ff9010',
    1717            'type' => 'library',
    1818            'install_path' => __DIR__ . '/../../',
     
    2121        ),
    2222        'matterwp/wp-subscription-manager' => array(
    23             'pretty_version' => 'v0.0.3',
    24             'version' => '0.0.3.0',
    25             'reference' => '482ebdc19603dad0830850481c36a22daea5d888',
     23            'pretty_version' => 'v0.0.4',
     24            'version' => '0.0.4.0',
     25            'reference' => '1676660b867fea389259dee6d6b80a92c2090c04',
    2626            'type' => 'wordpress-plugin',
    2727            'install_path' => __DIR__ . '/../matterwp/wp-subscription-manager',
  • alter-media/trunk/vendor/matterwp/wp-subscription-manager/src/Diagnosis.php

    r3207521 r3207605  
    99class Diagnosis {
    1010    /**
     11     * SubscriptionManager instance
     12     *
     13     * @var SubscriptionManager
     14     */
     15    private static $manager;
     16
     17    /**
     18     * Set the SubscriptionManager instance
     19     *
     20     * @param SubscriptionManager $manager
     21     */
     22    public static function set_manager( SubscriptionManager $manager ) {
     23        self::$manager = $manager;
     24    }
     25
     26    /**
    1127     * Retrieves comprehensive system information about the WordPress installation
    1228     *
     
    1531    public static function get_system_info() {
    1632        $data = array(
     33            'plugin_slug'        => self::safely_run( 'get_plugin_slug' ),
    1734            'email'              => self::safely_run( 'get_admin_email' ),
    1835            'website_url'        => self::safely_run( 'get_site_url' ),
     
    302319        wp_send_json_success( self::get_system_info() );
    303320    }
     321
     322    /**
     323     * Gets the plugin slug from the Config instance
     324     *
     325     * @return string Plugin slug or empty string on failure
     326     */
     327    private static function get_plugin_slug() {
     328        if (!isset(self::$manager)) {
     329            return '';
     330        }
     331
     332        try {
     333            $config = self::$manager->get_config();
     334            return $config ? sanitize_key($config->get('plugin_slug')) : '';
     335        } catch (\Exception $e) {
     336            return '';
     337        }
     338    }
    304339}
  • alter-media/trunk/vendor/matterwp/wp-subscription-manager/src/SubscriptionManager.php

    r3207521 r3207605  
    3030        $this->config       = new Config( $settings );
    3131        $this->welcome_page = new WelcomePage( $this->config );
     32
     33        // Set the manager instance for Diagnosis
     34        Diagnosis::set_manager( $this );
    3235
    3336        $this->setup_hooks();
     
    8891        return admin_url( 'admin.php?page=' . $this->config->get( 'plugin_slug' ) . '-welcome' );
    8992    }
     93
     94    /**
     95     * Get the config instance
     96     *
     97     * @return Config
     98     */
     99    public function get_config() {
     100        return $this->config;
     101    }
    90102}
  • alter-media/trunk/vendor/matterwp/wp-subscription-manager/src/SubscriptionManagerFactory.php

    r3207521 r3207605  
    3434        $settings = self::prepareSettings( $settings );
    3535
    36         return new SubscriptionManager( $settings );
     36        $manager = new SubscriptionManager( $settings );
     37        return $manager;
    3738    }
    3839
  • alter-media/trunk/vendor/matterwp/wp-subscription-manager/templates/welcome-page.php

    r3207521 r3207605  
    106106    transition: all 0.3s ease;
    107107    background-color:
    108         <?php
    109         echo esc_attr( $btn_color );
    110         ?>
    111     ;
     108        <?php echo esc_attr($btn_color);
     109    ?>;
    112110}
    113111
    114112.btn-subscribe:hover {
    115113    background-color:
    116         <?php
    117         echo esc_attr( $btn_hover );
    118         ?>
    119     ;
     114        <?php echo esc_attr($btn_hover);
     115    ?>;
    120116}
    121117
     
    300296                }
    301297
    302                 if (this.isSkipped) {
    303                     setTimeout(() => {
    304                         window.location.href = '<?php echo esc_js( $after_subscription_url ); ?>';
    305                     }, 0);
    306                 } else {
    307                     setTimeout(() => {
    308                         window.location.href = '<?php echo esc_js( $after_subscription_url ); ?>';
    309                     }, 1500);
    310                 }
     298                setTimeout(() => {
     299                    window.location.href = '<?php echo esc_js( $after_subscription_url ); ?>';
     300                }, 1000);
    311301            } catch (error) {
    312302                console.error('Error:', error);
Note: See TracChangeset for help on using the changeset viewer.