Changeset 3268549
- Timestamp:
- 04/08/2025 09:29:06 AM (12 months ago)
- Location:
- affilizz
- Files:
-
- 8 edited
- 1 copied
-
tags/1.15.4 (copied) (copied from affilizz/trunk)
-
tags/1.15.4/classes/Core.php (modified) (1 diff)
-
tags/1.15.4/classes/Util/Editor.php (modified) (2 diffs)
-
tags/1.15.4/init.php (modified) (3 diffs)
-
tags/1.15.4/readme.txt (modified) (4 diffs)
-
trunk/classes/Core.php (modified) (1 diff)
-
trunk/classes/Util/Editor.php (modified) (2 diffs)
-
trunk/init.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
affilizz/tags/1.15.4/classes/Core.php
r3259756 r3268549 129 129 public function load_translations() { 130 130 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' ); 131 135 } 132 136 -
affilizz/tags/1.15.4/classes/Util/Editor.php
r3259287 r3268549 29 29 30 30 // 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; 32 36 $shortcodes = $this->get_shortcodes( $content, $shortcode_tags, array_keys( $affilizz_shortcodes ) ); 33 37 … … 39 43 40 44 // 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 ] ) ) { 42 47 continue; 43 48 } 44 49 $preprocessed_shortcodes[ $id ] = [ 45 'title' => $affilizz_shortcodes[ $ shortcode[ 'type' ] ][ 'display_name' ] ?:__( 'Affilizz publication', 'affilizz' ),50 'title' => $affilizz_shortcodes[ $index ][ 'display_name' ] ?? __( 'Affilizz publication', 'affilizz' ), 46 51 'render' => do_shortcode( $shortcode[ 'attributes' ] ) 47 52 ]; -
affilizz/tags/1.15.4/init.php
r3259756 r3268549 5 5 * Author URI: https://www.affilizz.com 6 6 * Author: Affilizz, Dewizz SAS <wordpress@affilizz.com> 7 * Version: 1.15. 37 * Version: 1.15.4 8 8 * Requires at least: 5.9 9 9 * Requires PHP: 7.3.0 … … 13 13 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly 14 14 15 define( 'AFFILIZZ_VERSION', '1.15. 3' );15 define( 'AFFILIZZ_VERSION', '1.15.4' ); 16 16 define( 'AFFILIZZ_ASSETS_BUILD_VERSION', 'lB2WutOuF1C7nE9C' ); 17 17 … … 27 27 register_activation_hook( __FILE__, array( 'Affilizz\Install', 'install' ) ); 28 28 register_uninstall_hook( __FILE__, array( 'Affilizz\Core', 'uninstall' ) ); 29 30 // Allows translation of the plugin name31 __( '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 3 3 Tags: affilizz, block, affiliation, affiliate, ads 4 4 Requires at least: 5.9 5 Tested up to: 6. 7.26 Stable tag: 1.15. 35 Tested up to: 6.8 6 Stable tag: 1.15.4 7 7 Requires PHP: 7.3.0 8 8 License: GPLv2 or later … … 52 52 53 53 == 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. 54 60 55 61 = 1.15.3 = … … 202 208 * Escaping of the publication contents options. 203 209 * Recent publications where no longer displayed at the top of the list. 204 * Allow strong and small tags in the WordPress ksesallowed tags.210 * Allow "strong" and "small" tags in the WordPress "kses" allowed tags. 205 211 * Fixes loading of the scripts on the front-end. 206 212 … … 309 315 310 316 == Screenshots == 317 311 318 1. Insert affiliate content popin in the classic- and Gutenberg editors. 312 319 2. Setup wizard to help you set up your API Key and key data to interact with Affilizz. -
affilizz/trunk/classes/Core.php
r3259756 r3268549 129 129 public function load_translations() { 130 130 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' ); 131 135 } 132 136 -
affilizz/trunk/classes/Util/Editor.php
r3259287 r3268549 29 29 30 30 // 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; 32 36 $shortcodes = $this->get_shortcodes( $content, $shortcode_tags, array_keys( $affilizz_shortcodes ) ); 33 37 … … 39 43 40 44 // 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 ] ) ) { 42 47 continue; 43 48 } 44 49 $preprocessed_shortcodes[ $id ] = [ 45 'title' => $affilizz_shortcodes[ $ shortcode[ 'type' ] ][ 'display_name' ] ?:__( 'Affilizz publication', 'affilizz' ),50 'title' => $affilizz_shortcodes[ $index ][ 'display_name' ] ?? __( 'Affilizz publication', 'affilizz' ), 46 51 'render' => do_shortcode( $shortcode[ 'attributes' ] ) 47 52 ]; -
affilizz/trunk/init.php
r3259756 r3268549 5 5 * Author URI: https://www.affilizz.com 6 6 * Author: Affilizz, Dewizz SAS <wordpress@affilizz.com> 7 * Version: 1.15. 37 * Version: 1.15.4 8 8 * Requires at least: 5.9 9 9 * Requires PHP: 7.3.0 … … 13 13 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly 14 14 15 define( 'AFFILIZZ_VERSION', '1.15. 3' );15 define( 'AFFILIZZ_VERSION', '1.15.4' ); 16 16 define( 'AFFILIZZ_ASSETS_BUILD_VERSION', 'lB2WutOuF1C7nE9C' ); 17 17 … … 27 27 register_activation_hook( __FILE__, array( 'Affilizz\Install', 'install' ) ); 28 28 register_uninstall_hook( __FILE__, array( 'Affilizz\Core', 'uninstall' ) ); 29 30 // Allows translation of the plugin name31 __( '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 3 3 Tags: affilizz, block, affiliation, affiliate, ads 4 4 Requires at least: 5.9 5 Tested up to: 6. 7.26 Stable tag: 1.15. 35 Tested up to: 6.8 6 Stable tag: 1.15.4 7 7 Requires PHP: 7.3.0 8 8 License: GPLv2 or later … … 52 52 53 53 == 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. 54 60 55 61 = 1.15.3 = … … 202 208 * Escaping of the publication contents options. 203 209 * Recent publications where no longer displayed at the top of the list. 204 * Allow strong and small tags in the WordPress ksesallowed tags.210 * Allow "strong" and "small" tags in the WordPress "kses" allowed tags. 205 211 * Fixes loading of the scripts on the front-end. 206 212 … … 309 315 310 316 == Screenshots == 317 311 318 1. Insert affiliate content popin in the classic- and Gutenberg editors. 312 319 2. 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.