Plugin Directory

Changeset 3268549


Ignore:
Timestamp:
04/08/2025 09:29:06 AM (12 months ago)
Author:
affilizz
Message:

build(plugin): Tagging version 1.15.4

Location:
affilizz
Files:
8 edited
1 copied

Legend:

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

    r3259756 r3268549  
    129129    public function load_translations() {
    130130        load_textdomain( 'affilizz', AFFILIZZ_DIRECTORY . 'languages/affilizz-' . get_locale() . '.mo' );
     131
     132        // Allows translation of the plugin name
     133        __( 'Affilizz', 'affilizz' );
     134        __( 'Affilizz allows you to manage all your affiliated content in one place regardless of your activity.', 'affilizz' );
    131135    }
    132136
  • affilizz/tags/1.15.4/classes/Util/Editor.php

    r3259287 r3268549  
    2929
    3030        // Parse the current post content to extract the shortcodes
    31         $content    = get_the_content( get_the_ID() ) ?: '';
     31        $content_container = get_post( get_the_ID() );
     32        if ( empty( $content_container ) || ! is_object( $content_container ) ) {
     33            return;
     34        }
     35        $content = $content_container->post_content;
    3236        $shortcodes = $this->get_shortcodes( $content, $shortcode_tags, array_keys( $affilizz_shortcodes ) );
    3337
     
    3943
    4044            // Bug fix for situations where the shortcode does not exist
    41             if ( empty( $affilizz_shortcodes[ $shortcode[ 'type' ] ] ) ) {
     45            $index = array_search( $shortcode[ 'type' ], $affilizz_shortcodes );
     46            if ( $index === false || empty( $affilizz_shortcodes[ $index ] ) ) {
    4247                continue;
    4348            }
    4449            $preprocessed_shortcodes[ $id ] = [
    45                 'title' => $affilizz_shortcodes[ $shortcode[ 'type' ] ][ 'display_name' ] ?: __( 'Affilizz publication', 'affilizz' ),
     50                'title' => $affilizz_shortcodes[ $index ][ 'display_name' ] ?? __( 'Affilizz publication', 'affilizz' ),
    4651                'render' => do_shortcode( $shortcode[ 'attributes' ] )
    4752            ];
  • affilizz/tags/1.15.4/init.php

    r3259756 r3268549  
    55 * Author URI: https://www.affilizz.com
    66 * Author: Affilizz, Dewizz SAS <wordpress@affilizz.com>
    7  * Version: 1.15.3
     7 * Version: 1.15.4
    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.3' );
     15define( 'AFFILIZZ_VERSION', '1.15.4' );
    1616define( 'AFFILIZZ_ASSETS_BUILD_VERSION', 'lB2WutOuF1C7nE9C' );
    1717
     
    2727register_activation_hook( __FILE__, array( 'Affilizz\Install', 'install' ) );
    2828register_uninstall_hook( __FILE__, array( 'Affilizz\Core', 'uninstall' ) );
    29 
    30 // Allows translation of the plugin name
    31 __( 'Affilizz', 'affilizz' );
    32 __( 'Affilizz allows you to manage all your affiliated content in one place regardless of your activity.', 'affilizz' );
  • affilizz/tags/1.15.4/readme.txt

    r3259756 r3268549  
    33Tags: affilizz, block, affiliation, affiliate, ads
    44Requires at least: 5.9
    5 Tested up to: 6.7.2
    6 Stable tag: 1.15.3
     5Tested up to: 6.8
     6Stable tag: 1.15.4
    77Requires PHP: 7.3.0
    88License: GPLv2 or later
     
    5252
    5353== Changelog ==
     54
     55= 1.15.3 =
     56
     57* Fixes an issue while loading the translation of the plugin name for the plugins page.
     58* Improves pre-loading of the processed Affilizz shortcodes.
     59* Bumps the supported WordPress version to 6.8 after tests on the RC2 version.
    5460
    5561= 1.15.3 =
     
    202208  * Escaping of the publication contents options.
    203209  * Recent publications where no longer displayed at the top of the list.
    204   * Allow strong and small tags in the WordPress kses allowed tags.
     210  * Allow "strong" and "small" tags in the WordPress "kses" allowed tags.
    205211  * Fixes loading of the scripts on the front-end.
    206212
     
    309315
    310316== Screenshots ==
     317
    3113181. Insert affiliate content popin in the classic- and Gutenberg editors.
    3123192. Setup wizard to help you set up your API Key and key data to interact with Affilizz.
  • affilizz/trunk/classes/Core.php

    r3259756 r3268549  
    129129    public function load_translations() {
    130130        load_textdomain( 'affilizz', AFFILIZZ_DIRECTORY . 'languages/affilizz-' . get_locale() . '.mo' );
     131
     132        // Allows translation of the plugin name
     133        __( 'Affilizz', 'affilizz' );
     134        __( 'Affilizz allows you to manage all your affiliated content in one place regardless of your activity.', 'affilizz' );
    131135    }
    132136
  • affilizz/trunk/classes/Util/Editor.php

    r3259287 r3268549  
    2929
    3030        // Parse the current post content to extract the shortcodes
    31         $content    = get_the_content( get_the_ID() ) ?: '';
     31        $content_container = get_post( get_the_ID() );
     32        if ( empty( $content_container ) || ! is_object( $content_container ) ) {
     33            return;
     34        }
     35        $content = $content_container->post_content;
    3236        $shortcodes = $this->get_shortcodes( $content, $shortcode_tags, array_keys( $affilizz_shortcodes ) );
    3337
     
    3943
    4044            // Bug fix for situations where the shortcode does not exist
    41             if ( empty( $affilizz_shortcodes[ $shortcode[ 'type' ] ] ) ) {
     45            $index = array_search( $shortcode[ 'type' ], $affilizz_shortcodes );
     46            if ( $index === false || empty( $affilizz_shortcodes[ $index ] ) ) {
    4247                continue;
    4348            }
    4449            $preprocessed_shortcodes[ $id ] = [
    45                 'title' => $affilizz_shortcodes[ $shortcode[ 'type' ] ][ 'display_name' ] ?: __( 'Affilizz publication', 'affilizz' ),
     50                'title' => $affilizz_shortcodes[ $index ][ 'display_name' ] ?? __( 'Affilizz publication', 'affilizz' ),
    4651                'render' => do_shortcode( $shortcode[ 'attributes' ] )
    4752            ];
  • affilizz/trunk/init.php

    r3259756 r3268549  
    55 * Author URI: https://www.affilizz.com
    66 * Author: Affilizz, Dewizz SAS <wordpress@affilizz.com>
    7  * Version: 1.15.3
     7 * Version: 1.15.4
    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.3' );
     15define( 'AFFILIZZ_VERSION', '1.15.4' );
    1616define( 'AFFILIZZ_ASSETS_BUILD_VERSION', 'lB2WutOuF1C7nE9C' );
    1717
     
    2727register_activation_hook( __FILE__, array( 'Affilizz\Install', 'install' ) );
    2828register_uninstall_hook( __FILE__, array( 'Affilizz\Core', 'uninstall' ) );
    29 
    30 // Allows translation of the plugin name
    31 __( 'Affilizz', 'affilizz' );
    32 __( 'Affilizz allows you to manage all your affiliated content in one place regardless of your activity.', 'affilizz' );
  • affilizz/trunk/readme.txt

    r3259756 r3268549  
    33Tags: affilizz, block, affiliation, affiliate, ads
    44Requires at least: 5.9
    5 Tested up to: 6.7.2
    6 Stable tag: 1.15.3
     5Tested up to: 6.8
     6Stable tag: 1.15.4
    77Requires PHP: 7.3.0
    88License: GPLv2 or later
     
    5252
    5353== Changelog ==
     54
     55= 1.15.3 =
     56
     57* Fixes an issue while loading the translation of the plugin name for the plugins page.
     58* Improves pre-loading of the processed Affilizz shortcodes.
     59* Bumps the supported WordPress version to 6.8 after tests on the RC2 version.
    5460
    5561= 1.15.3 =
     
    202208  * Escaping of the publication contents options.
    203209  * Recent publications where no longer displayed at the top of the list.
    204   * Allow strong and small tags in the WordPress kses allowed tags.
     210  * Allow "strong" and "small" tags in the WordPress "kses" allowed tags.
    205211  * Fixes loading of the scripts on the front-end.
    206212
     
    309315
    310316== Screenshots ==
     317
    3113181. Insert affiliate content popin in the classic- and Gutenberg editors.
    3123192. Setup wizard to help you set up your API Key and key data to interact with Affilizz.
Note: See TracChangeset for help on using the changeset viewer.