Plugin Directory

Changeset 3259287


Ignore:
Timestamp:
03/20/2025 04:07:03 PM (12 months ago)
Author:
affilizz
Message:

build(plugin): Tagging version 1.15.2

Location:
affilizz
Files:
1 deleted
8 edited
21 copied

Legend:

Unmodified
Added
Removed
  • affilizz/tags/1.15.2/classes/Core.php

    r3259019 r3259287  
    7171
    7272        // Load the plugin's translations and start the plugin
    73         add_action( 'plugins_loaded', array( $this, 'init' ), 999 );
     73        add_action( 'init', array( $this, 'init' ), 99 );
    7474
    7575        // Change the administration footer output
  • affilizz/tags/1.15.2/classes/Util/Editor.php

    r3254716 r3259287  
    3737            $parsed_atts = shortcode_parse_atts( $shortcode[ 'attributes' ] );
    3838            $id = trim( str_replace( [ $parsed_atts[ 0 ], 'id="', '"', '[', ']' ], '', $shortcode[ 'attributes' ] ) );
     39
     40            // Bug fix for situations where the shortcode does not exist
     41            if ( empty( $affilizz_shortcodes[ $shortcode[ 'type' ] ] ) ) {
     42                continue;
     43            }
    3944            $preprocessed_shortcodes[ $id ] = [
    4045                'title' => $affilizz_shortcodes[ $shortcode[ 'type' ] ][ 'display_name' ] ?: __( 'Affilizz publication', 'affilizz' ),
  • affilizz/tags/1.15.2/classes/Util/Filters.php

    r3259019 r3259287  
    8484     */
    8585    public function add_editor_style_classic() {
     86        if ( ! function_exists( 'get_current_screen' ) ) return;
    8687        add_theme_support( 'editor-style' );
    8788        if ( ! empty( get_current_screen() ) && get_current_screen()->is_block_editor() ) return;
     
    8990    }
    9091    public function add_editor_style_gutenberg() {
     92        if ( ! function_exists( 'get_current_screen' ) ) return;
    9193        if ( ! is_admin() ) return;
    9294        if ( empty( get_current_screen() ) || ! get_current_screen()->is_block_editor() ) return;
  • affilizz/tags/1.15.2/classes/Util/Notices.php

    r3259019 r3259287  
    3030     */
    3131    public function clean_administration_notices_classic() {
     32        if ( ! function_exists( 'get_current_screen' ) ) return;
    3233        if ( ! empty( get_current_screen() ) && get_current_screen()->is_block_editor() ) return;
    3334        wp_add_inline_style( 'affilizz-admin', ':not(.notice) + .notice { margin-top: 20px; }' );
     
    3536    public function clean_administration_notices_gutenberg() {
    3637        if ( ! is_admin() ) return;
     38        if ( ! function_exists( 'get_current_screen' ) ) return;
     39
    3740        if ( empty( get_current_screen() ) || ! get_current_screen()->is_block_editor() ) return;
    3841        wp_add_inline_style( 'affilizz-admin', ':not(.notice) + .notice { margin-top: 20px; }' );
  • affilizz/tags/1.15.2/includes/i18n.php

    r3259019 r3259287  
    150150                'abbreviations' => array (
    151151                    'marketplace' => _x( 'MP', 'Abbreviation for "Marketplace"', 'affilizz' ),
    152                     'used'        => _x( 'U', 'Abbreviation for used', 'affilizz' ),
    153                     'refurbished' => _x( 'R', 'abbreviation for refurbished', 'affilizz' ),
     152                    'used'        => _x( 'U', 'Abbreviation for "Used', 'affilizz' ),
     153                    'refurbished' => _x( 'R', 'Abbreviation for "Refurbished', 'affilizz' ),
    154154                ),
    155155            )
  • affilizz/tags/1.15.2/init.php

    r3259019 r3259287  
    55 * Author URI: https://www.affilizz.com
    66 * Author: Affilizz, Dewizz SAS <wordpress@affilizz.com>
    7  * Version: 1.15.1
     7 * Version: 1.15.2
    88 * Requires at least: 5.9
    99 * Requires PHP: 7.3.0
     
    1313if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
    1414
    15 define( 'AFFILIZZ_VERSION', '1.15.1' );
     15define( 'AFFILIZZ_VERSION', '1.15.2' );
    1616define( 'AFFILIZZ_ASSETS_BUILD_VERSION', 'lB2WutOuF1C7nE9C' );
    1717
  • affilizz/tags/1.15.2/readme.txt

    r3259019 r3259287  
    44Requires at least: 5.9
    55Tested up to: 6.7.2
    6 Stable tag: 1.15.1
     6Stable tag: 1.15.2
    77Requires PHP: 7.3.0
    88License: GPLv2 or later
     
    5353== Changelog ==
    5454
     55= 1.15.2 =
     56
     57* **Fixes** :
     58  * Hotfixes an issue with get_current_screen on specific installations causing the 1.15.1 update to crash.
     59
    5560= 1.15.1 =
    5661
    57 * Fixes an issue when uninstalling / deleting the plugin from the plugins page in the back-office.
    58 * Fixes PHP notations for the array callbacks in hooks.
    59 * Fixes a warning while loading admin.css and inline admin styles for gutenberg (moved to enqueue_block_assets).
    60 * Changes some translation source strings.
     62* **Fixes** :
     63  * Solves an issue when uninstalling / deleting the plugin from the plugins page in the back-office.
     64  * PHP notations for the array callbacks in hooks are now aligned with WordPress standards.
     65  * Hides a warning while loading admin.css and inline admin styles for gutenberg (moved to enqueue_block_assets).
     66  * Changes some translation source strings.
     67  * Changes how the CSS is loaded.
    6168
    6269= 1.15.0 =
  • affilizz/trunk/classes/Core.php

    r3259019 r3259287  
    7171
    7272        // Load the plugin's translations and start the plugin
    73         add_action( 'plugins_loaded', array( $this, 'init' ), 999 );
     73        add_action( 'init', array( $this, 'init' ), 99 );
    7474
    7575        // Change the administration footer output
  • affilizz/trunk/classes/Util/Editor.php

    r3254716 r3259287  
    3737            $parsed_atts = shortcode_parse_atts( $shortcode[ 'attributes' ] );
    3838            $id = trim( str_replace( [ $parsed_atts[ 0 ], 'id="', '"', '[', ']' ], '', $shortcode[ 'attributes' ] ) );
     39
     40            // Bug fix for situations where the shortcode does not exist
     41            if ( empty( $affilizz_shortcodes[ $shortcode[ 'type' ] ] ) ) {
     42                continue;
     43            }
    3944            $preprocessed_shortcodes[ $id ] = [
    4045                'title' => $affilizz_shortcodes[ $shortcode[ 'type' ] ][ 'display_name' ] ?: __( 'Affilizz publication', 'affilizz' ),
  • affilizz/trunk/classes/Util/Filters.php

    r3259019 r3259287  
    8484     */
    8585    public function add_editor_style_classic() {
     86        if ( ! function_exists( 'get_current_screen' ) ) return;
    8687        add_theme_support( 'editor-style' );
    8788        if ( ! empty( get_current_screen() ) && get_current_screen()->is_block_editor() ) return;
     
    8990    }
    9091    public function add_editor_style_gutenberg() {
     92        if ( ! function_exists( 'get_current_screen' ) ) return;
    9193        if ( ! is_admin() ) return;
    9294        if ( empty( get_current_screen() ) || ! get_current_screen()->is_block_editor() ) return;
  • affilizz/trunk/classes/Util/Notices.php

    r3259019 r3259287  
    3030     */
    3131    public function clean_administration_notices_classic() {
     32        if ( ! function_exists( 'get_current_screen' ) ) return;
    3233        if ( ! empty( get_current_screen() ) && get_current_screen()->is_block_editor() ) return;
    3334        wp_add_inline_style( 'affilizz-admin', ':not(.notice) + .notice { margin-top: 20px; }' );
     
    3536    public function clean_administration_notices_gutenberg() {
    3637        if ( ! is_admin() ) return;
     38        if ( ! function_exists( 'get_current_screen' ) ) return;
     39
    3740        if ( empty( get_current_screen() ) || ! get_current_screen()->is_block_editor() ) return;
    3841        wp_add_inline_style( 'affilizz-admin', ':not(.notice) + .notice { margin-top: 20px; }' );
  • affilizz/trunk/includes/i18n.php

    r3259019 r3259287  
    150150                'abbreviations' => array (
    151151                    'marketplace' => _x( 'MP', 'Abbreviation for "Marketplace"', 'affilizz' ),
    152                     'used'        => _x( 'U', 'Abbreviation for used', 'affilizz' ),
    153                     'refurbished' => _x( 'R', 'abbreviation for refurbished', 'affilizz' ),
     152                    'used'        => _x( 'U', 'Abbreviation for "Used', 'affilizz' ),
     153                    'refurbished' => _x( 'R', 'Abbreviation for "Refurbished', 'affilizz' ),
    154154                ),
    155155            )
  • affilizz/trunk/init.php

    r3259019 r3259287  
    55 * Author URI: https://www.affilizz.com
    66 * Author: Affilizz, Dewizz SAS <wordpress@affilizz.com>
    7  * Version: 1.15.1
     7 * Version: 1.15.2
    88 * Requires at least: 5.9
    99 * Requires PHP: 7.3.0
     
    1313if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
    1414
    15 define( 'AFFILIZZ_VERSION', '1.15.1' );
     15define( 'AFFILIZZ_VERSION', '1.15.2' );
    1616define( 'AFFILIZZ_ASSETS_BUILD_VERSION', 'lB2WutOuF1C7nE9C' );
    1717
  • affilizz/trunk/readme.txt

    r3259019 r3259287  
    44Requires at least: 5.9
    55Tested up to: 6.7.2
    6 Stable tag: 1.15.1
     6Stable tag: 1.15.2
    77Requires PHP: 7.3.0
    88License: GPLv2 or later
     
    5353== Changelog ==
    5454
     55= 1.15.2 =
     56
     57* **Fixes** :
     58  * Hotfixes an issue with get_current_screen on specific installations causing the 1.15.1 update to crash.
     59
    5560= 1.15.1 =
    5661
    57 * Fixes an issue when uninstalling / deleting the plugin from the plugins page in the back-office.
    58 * Fixes PHP notations for the array callbacks in hooks.
    59 * Fixes a warning while loading admin.css and inline admin styles for gutenberg (moved to enqueue_block_assets).
    60 * Changes some translation source strings.
     62* **Fixes** :
     63  * Solves an issue when uninstalling / deleting the plugin from the plugins page in the back-office.
     64  * PHP notations for the array callbacks in hooks are now aligned with WordPress standards.
     65  * Hides a warning while loading admin.css and inline admin styles for gutenberg (moved to enqueue_block_assets).
     66  * Changes some translation source strings.
     67  * Changes how the CSS is loaded.
    6168
    6269= 1.15.0 =
Note: See TracChangeset for help on using the changeset viewer.