Plugin Directory

Changeset 3238457


Ignore:
Timestamp:
02/11/2025 09:46:07 AM (12 months ago)
Author:
themefusecom
Message:

Version 2.6.10

Location:
brizy
Files:
14 edited
1 copied

Legend:

Unmodified
Added
Removed
  • brizy/tags/2.6.10/README.md

    r3231744 r3238457  
    55Tested up to: 6.7.1<br>
    66Requires PHP: 7.2.24<br>
    7 Stable tag: 2.6.9<br>
     7Stable tag: 2.6.10<br>
    88License: GPLv3<br>
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    136136
    137137## Changelog
     138
     139### 2.6.10 - 2025-02-11
     140* Fixed: SVG attachment creation
     141* Fixed: added a security fix on API endpoint
     142
    138143
    139144### 2.6.9 - 2025-01-30
  • brizy/tags/2.6.10/brizy.php

    r3231744 r3238457  
    66 * Author: Brizy.io
    77 * Author URI: https://brizy.io/
    8  * Version: 2.6.9
     8 * Version: 2.6.10
    99 * Text Domain: brizy
    1010 * License: GPLv3
     
    2020define( 'BRIZY_DEVELOPMENT', false );
    2121define( 'BRIZY_LOG', false );
    22 define( 'BRIZY_VERSION', '2.6.9' );
     22define( 'BRIZY_VERSION', '2.6.10' );
    2323define( 'BRIZY_MINIMUM_PRO_VERSION', '2.4.15' );
    2424define( 'BRIZY_MINIMUM_COMPILER_VERSION', '303-wp' );
  • brizy/tags/2.6.10/editor/api.php

    r3222672 r3238457  
    988988                $user->ID = (int) $user->ID;
    989989
    990                 return $user;
     990                return [
     991                    'ID'              => $user->ID,
     992                    'display_name'    => $user->display_name,
     993                    'user_nicename'   => $user->user_nicename,
     994                    'user_email'      => $user->user_email,
     995                    'user_registered' => $user->user_registered,
     996                ];
    991997            },
    992998            $users
  • brizy/tags/2.6.10/editor/asset/static-file-trait.php

    r3223493 r3238457  
    6262            $content = self::get_asset_content($asset_source);
    6363
    64             $tempFile = Brizy_Editor_Asset_StaticFileTrait::createSideLoadFile(
     64            $tempFile = Brizy_Editor_Asset_StaticFile::createSideLoadFile(
    6565                $basename,
    6666                $content
    6767            );
    6868
    69             $filePath = Brizy_Editor_Asset_StaticFileTrait::createSideLoadMedia( $tempFile, $asset_path );
     69            $filePath = Brizy_Editor_Asset_StaticFile::createSideLoadMedia( $tempFile, $asset_path );
    7070
    7171            if ( $filePath instanceof WP_Error ) {
    72                 throw new Exception( "Unable to store the thumbnail" );
     72                throw new Exception( "Unable to store the thumbnail: ".$filePath->get_error_message() );
    7373            }
    7474
     
    172172    }
    173173
    174     public static function createSideLoadMedia($tempFileArray, $assetPath, $postId = null, $uid = null)
    175     {
    176 
    177         $overrides = array('test_form' => false);
    178         $post = get_post($postId);
    179 
    180         $time = date("Y/m");
    181         if ($post && substr($post->post_date, 0, 4) > 0) {
    182             $time = $post->post_date;
    183         }
    184 
    185         if (wp_mkdir_p(dirname($assetPath)) === false) {
    186             Brizy_Logger::instance()->critical('Unable to create folder', [$assetPath]);
    187             throw new Exception('Unable to create folder for block images');
    188         }
    189 
    190         $uploadData = wp_handle_sideload($tempFileArray, $overrides, $time);
    191 
    192         if (isset($uploadData['error'])) {
    193             return new WP_Error('upload_error', $uploadData['error']);
    194         }
    195 
    196         if(!@copy($uploadData['file'], $assetPath)) {
    197             $error = error_get_last();
    198             return new WP_Error('upload_error',  htmlentities( $error['message'] ));
    199         }
    200 
    201         unlink($uploadData['file']);
    202 
    203         return $assetPath;
    204     }
     174    public static function createSideLoadMedia( $tempFileArray, $assetPath, $postId = null, $uid = null ) {
     175
     176        $overrides = array( 'test_form' => false );
     177        $post      = get_post( $postId );
     178        $time = date( "Y/m" );
     179        if ( $post && substr( $post->post_date, 0, 4 ) > 0 ) {
     180            $time = $post->post_date;
     181        }
     182        if ( wp_mkdir_p( dirname( $assetPath ) ) === false ) {
     183            Brizy_Logger::instance()->critical( 'Unable to create folder', [ $assetPath ] );
     184            throw new Exception( 'Unable to create folder for block images' );
     185        }
     186        $uploadData = wp_handle_sideload( $tempFileArray, $overrides, $time );
     187        if ( isset( $uploadData['error'] ) ) {
     188            return new WP_Error( 'upload_error', $uploadData['error'] );
     189        }
     190
     191        if ( $uploadData['file'] == $assetPath ) {
     192            return $assetPath;
     193        }
     194
     195        if ( ! @copy( $uploadData['file'], $assetPath ) ) {
     196            $error = error_get_last();
     197
     198            return new WP_Error( 'upload_error', htmlentities( $error['message'] ) );
     199        }
     200        unlink( $uploadData['file'] );
     201
     202        return $assetPath;
     203    }
    205204
    206205    public static function createSideLoadFile($basename, $content)
  • brizy/tags/2.6.10/languages/brizy.pot

    r3231744 r3238457  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Brizy 2.6.9\n"
     5"Project-Id-Version: Brizy 2.6.10\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/workspace\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2025-01-30T06:39:22+00:00\n"
     12"POT-Creation-Date: 2025-02-11T09:44:43+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.11.0\n"
     
    869869msgstr ""
    870870
    871 #: editor/asset/static-file-trait.php:213
     871#: editor/asset/static-file-trait.php:212
    872872msgid "Failed to write content"
    873873msgstr ""
  • brizy/tags/2.6.10/readme.txt

    r3231744 r3238457  
    55Tested up to: 6.7.1
    66Requires PHP: 7.2.24
    7 Stable tag: 2.6.9
     7Stable tag: 2.6.10
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    133133
    134134== Changelog ==
     135
     136= 2.6.10 - 2025-02-11 =
     137* Fixed: SVG attachment creation
     138* Fixed: added a security fix on API endpoint
     139
    135140
    136141= 2.6.9 - 2025-01-30 =
  • brizy/tags/2.6.10/vendor/composer/installed.php

    r3231744 r3238457  
    44        'pretty_version' => 'dev-master',
    55        'version' => 'dev-master',
    6         'reference' => '07075fe8ace9dd8755abead036dd6cb5fbf645ed',
     6        'reference' => 'da971b3c72b4fefd0d3d0412e1d09f73f45ce34c',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    4343            'pretty_version' => 'dev-master',
    4444            'version' => 'dev-master',
    45             'reference' => '07075fe8ace9dd8755abead036dd6cb5fbf645ed',
     45            'reference' => 'da971b3c72b4fefd0d3d0412e1d09f73f45ce34c',
    4646            'type' => 'library',
    4747            'install_path' => __DIR__ . '/../../',
  • brizy/trunk/README.md

    r3231744 r3238457  
    55Tested up to: 6.7.1<br>
    66Requires PHP: 7.2.24<br>
    7 Stable tag: 2.6.9<br>
     7Stable tag: 2.6.10<br>
    88License: GPLv3<br>
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    136136
    137137## Changelog
     138
     139### 2.6.10 - 2025-02-11
     140* Fixed: SVG attachment creation
     141* Fixed: added a security fix on API endpoint
     142
    138143
    139144### 2.6.9 - 2025-01-30
  • brizy/trunk/brizy.php

    r3231744 r3238457  
    66 * Author: Brizy.io
    77 * Author URI: https://brizy.io/
    8  * Version: 2.6.9
     8 * Version: 2.6.10
    99 * Text Domain: brizy
    1010 * License: GPLv3
     
    2020define( 'BRIZY_DEVELOPMENT', false );
    2121define( 'BRIZY_LOG', false );
    22 define( 'BRIZY_VERSION', '2.6.9' );
     22define( 'BRIZY_VERSION', '2.6.10' );
    2323define( 'BRIZY_MINIMUM_PRO_VERSION', '2.4.15' );
    2424define( 'BRIZY_MINIMUM_COMPILER_VERSION', '303-wp' );
  • brizy/trunk/editor/api.php

    r3222672 r3238457  
    988988                $user->ID = (int) $user->ID;
    989989
    990                 return $user;
     990                return [
     991                    'ID'              => $user->ID,
     992                    'display_name'    => $user->display_name,
     993                    'user_nicename'   => $user->user_nicename,
     994                    'user_email'      => $user->user_email,
     995                    'user_registered' => $user->user_registered,
     996                ];
    991997            },
    992998            $users
  • brizy/trunk/editor/asset/static-file-trait.php

    r3223493 r3238457  
    6262            $content = self::get_asset_content($asset_source);
    6363
    64             $tempFile = Brizy_Editor_Asset_StaticFileTrait::createSideLoadFile(
     64            $tempFile = Brizy_Editor_Asset_StaticFile::createSideLoadFile(
    6565                $basename,
    6666                $content
    6767            );
    6868
    69             $filePath = Brizy_Editor_Asset_StaticFileTrait::createSideLoadMedia( $tempFile, $asset_path );
     69            $filePath = Brizy_Editor_Asset_StaticFile::createSideLoadMedia( $tempFile, $asset_path );
    7070
    7171            if ( $filePath instanceof WP_Error ) {
    72                 throw new Exception( "Unable to store the thumbnail" );
     72                throw new Exception( "Unable to store the thumbnail: ".$filePath->get_error_message() );
    7373            }
    7474
     
    172172    }
    173173
    174     public static function createSideLoadMedia($tempFileArray, $assetPath, $postId = null, $uid = null)
    175     {
    176 
    177         $overrides = array('test_form' => false);
    178         $post = get_post($postId);
    179 
    180         $time = date("Y/m");
    181         if ($post && substr($post->post_date, 0, 4) > 0) {
    182             $time = $post->post_date;
    183         }
    184 
    185         if (wp_mkdir_p(dirname($assetPath)) === false) {
    186             Brizy_Logger::instance()->critical('Unable to create folder', [$assetPath]);
    187             throw new Exception('Unable to create folder for block images');
    188         }
    189 
    190         $uploadData = wp_handle_sideload($tempFileArray, $overrides, $time);
    191 
    192         if (isset($uploadData['error'])) {
    193             return new WP_Error('upload_error', $uploadData['error']);
    194         }
    195 
    196         if(!@copy($uploadData['file'], $assetPath)) {
    197             $error = error_get_last();
    198             return new WP_Error('upload_error',  htmlentities( $error['message'] ));
    199         }
    200 
    201         unlink($uploadData['file']);
    202 
    203         return $assetPath;
    204     }
     174    public static function createSideLoadMedia( $tempFileArray, $assetPath, $postId = null, $uid = null ) {
     175
     176        $overrides = array( 'test_form' => false );
     177        $post      = get_post( $postId );
     178        $time = date( "Y/m" );
     179        if ( $post && substr( $post->post_date, 0, 4 ) > 0 ) {
     180            $time = $post->post_date;
     181        }
     182        if ( wp_mkdir_p( dirname( $assetPath ) ) === false ) {
     183            Brizy_Logger::instance()->critical( 'Unable to create folder', [ $assetPath ] );
     184            throw new Exception( 'Unable to create folder for block images' );
     185        }
     186        $uploadData = wp_handle_sideload( $tempFileArray, $overrides, $time );
     187        if ( isset( $uploadData['error'] ) ) {
     188            return new WP_Error( 'upload_error', $uploadData['error'] );
     189        }
     190
     191        if ( $uploadData['file'] == $assetPath ) {
     192            return $assetPath;
     193        }
     194
     195        if ( ! @copy( $uploadData['file'], $assetPath ) ) {
     196            $error = error_get_last();
     197
     198            return new WP_Error( 'upload_error', htmlentities( $error['message'] ) );
     199        }
     200        unlink( $uploadData['file'] );
     201
     202        return $assetPath;
     203    }
    205204
    206205    public static function createSideLoadFile($basename, $content)
  • brizy/trunk/languages/brizy.pot

    r3231744 r3238457  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Brizy 2.6.9\n"
     5"Project-Id-Version: Brizy 2.6.10\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/workspace\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2025-01-30T06:39:22+00:00\n"
     12"POT-Creation-Date: 2025-02-11T09:44:43+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.11.0\n"
     
    869869msgstr ""
    870870
    871 #: editor/asset/static-file-trait.php:213
     871#: editor/asset/static-file-trait.php:212
    872872msgid "Failed to write content"
    873873msgstr ""
  • brizy/trunk/readme.txt

    r3231744 r3238457  
    55Tested up to: 6.7.1
    66Requires PHP: 7.2.24
    7 Stable tag: 2.6.9
     7Stable tag: 2.6.10
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    133133
    134134== Changelog ==
     135
     136= 2.6.10 - 2025-02-11 =
     137* Fixed: SVG attachment creation
     138* Fixed: added a security fix on API endpoint
     139
    135140
    136141= 2.6.9 - 2025-01-30 =
  • brizy/trunk/vendor/composer/installed.php

    r3231744 r3238457  
    44        'pretty_version' => 'dev-master',
    55        'version' => 'dev-master',
    6         'reference' => '07075fe8ace9dd8755abead036dd6cb5fbf645ed',
     6        'reference' => 'da971b3c72b4fefd0d3d0412e1d09f73f45ce34c',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    4343            'pretty_version' => 'dev-master',
    4444            'version' => 'dev-master',
    45             'reference' => '07075fe8ace9dd8755abead036dd6cb5fbf645ed',
     45            'reference' => 'da971b3c72b4fefd0d3d0412e1d09f73f45ce34c',
    4646            'type' => 'library',
    4747            'install_path' => __DIR__ . '/../../',
Note: See TracChangeset for help on using the changeset viewer.