Plugin Directory

Changeset 2937299


Ignore:
Timestamp:
07/11/2023 08:33:17 PM (21 months ago)
Author:
rosua
Message:

Update to version 1.0.48 from GitHub

Location:
yabe-webfont
Files:
14 edited
1 copied

Legend:

Unmodified
Added
Removed
  • yabe-webfont/tags/1.0.48/constant.php

    r2932379 r2937299  
    2626     * @var string
    2727     */
    28     public const VERSION = '1.0.47';
     28    public const VERSION = '1.0.48';
    2929    /**
    3030     * @var int
    3131     */
    32     public const VERSION_ID = 10047;
     32    public const VERSION_ID = 10048;
    3333    /**
    3434     * @var int
     
    4242     * @var int
    4343     */
    44     public const RELEASE_VERSION = 47;
     44    public const RELEASE_VERSION = 48;
    4545    /**
    4646     * @var string
  • yabe-webfont/tags/1.0.48/readme.txt

    r2932379 r2937299  
    55Requires at least: 6.0
    66Tested up to: 6.2
    7 Stable tag: 1.0.47
     7Stable tag: 1.0.48
    88Requires PHP: 7.4
    99License: GPLv3
     
    7676
    7777
     78= 1.0.48 =
     79* **Improve**: Ensure the uploaded font files are now stored in the `wp-content/uploads/yabe-webfont` folder.
     80
    7881= 1.0.47 =
    7982* **Improve**: Uploaded font files are now stored in the `wp-content/uploads/yabe-webfont` folder instead of the `wp-content/uploads/yyyy/mm` folder.
  • yabe-webfont/tags/1.0.48/src/Admin/AdminPage.php

    r2928341 r2937299  
    2424        \add_filter('wp_check_filetype_and_ext', static fn($data, $file, $filename, $mimes) => Upload::disable_real_mime_check($data, $file, $filename, $mimes), 10, 4);
    2525        \add_filter('upload_mimes', static fn($mime_types) => Upload::upload_mimes($mime_types), 1000001);
     26        \add_filter('upload_dir', fn($uploads) => $this->upload_dir($uploads), 1000001);
    2627        \add_action('admin_menu', fn() => $this->add_admin_menu());
    2728        if (Config::get('misc.hide_media_library', \false)) {
     
    8990        return \sprintf(\__('Thank you for using <b>Yabe Webfont</b>! Join us on the <a href="%s" target="_blank">Facebook Group</a>.', 'yabe-webfont'), 'https://www.facebook.com/groups/1142662969627943');
    9091    }
     92    private function upload_dir($uploads)
     93    {
     94        if (!isset($_POST['yabe_webfont_font_upload'])) {
     95            return $uploads;
     96        }
     97        return Upload::wpse_custom_upload_dir($uploads);
     98    }
    9199}
  • yabe-webfont/tags/1.0.48/vendor/autoload.php

    r2932379 r2937299  
    1919}
    2020require_once __DIR__ . '/composer/autoload_real.php';
    21 return ComposerAutoloaderInit49e09ab4ddcb00bf557bd452f55d8c72::getLoader();
     21return ComposerAutoloaderInit5320dd4ac59a710446fe426d4f18d387::getLoader();
  • yabe-webfont/tags/1.0.48/vendor/composer/autoload_real.php

    r2932379 r2937299  
    44
    55// autoload_real.php @generated by Composer
    6 class ComposerAutoloaderInit49e09ab4ddcb00bf557bd452f55d8c72
     6class ComposerAutoloaderInit5320dd4ac59a710446fe426d4f18d387
    77{
    88    private static $loader;
     
    2222        }
    2323        require __DIR__ . '/platform_check.php';
    24         \spl_autoload_register(array('_YabeWebfont\\ComposerAutoloaderInit49e09ab4ddcb00bf557bd452f55d8c72', 'loadClassLoader'), \true, \true);
     24        \spl_autoload_register(array('_YabeWebfont\\ComposerAutoloaderInit5320dd4ac59a710446fe426d4f18d387', 'loadClassLoader'), \true, \true);
    2525        self::$loader = $loader = new \_YabeWebfont\Composer\Autoload\ClassLoader(\dirname(__DIR__));
    26         \spl_autoload_unregister(array('_YabeWebfont\\ComposerAutoloaderInit49e09ab4ddcb00bf557bd452f55d8c72', 'loadClassLoader'));
     26        \spl_autoload_unregister(array('_YabeWebfont\\ComposerAutoloaderInit5320dd4ac59a710446fe426d4f18d387', 'loadClassLoader'));
    2727        require __DIR__ . '/autoload_static.php';
    28         \call_user_func(\_YabeWebfont\Composer\Autoload\ComposerStaticInit49e09ab4ddcb00bf557bd452f55d8c72::getInitializer($loader));
     28        \call_user_func(\_YabeWebfont\Composer\Autoload\ComposerStaticInit5320dd4ac59a710446fe426d4f18d387::getInitializer($loader));
    2929        $loader->setClassMapAuthoritative(\true);
    3030        $loader->register(\true);
    31         $filesToLoad = \_YabeWebfont\Composer\Autoload\ComposerStaticInit49e09ab4ddcb00bf557bd452f55d8c72::$files;
     31        $filesToLoad = \_YabeWebfont\Composer\Autoload\ComposerStaticInit5320dd4ac59a710446fe426d4f18d387::$files;
    3232        $requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
    3333            if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • yabe-webfont/tags/1.0.48/vendor/composer/autoload_static.php

    r2932379 r2937299  
    44namespace _YabeWebfont\Composer\Autoload;
    55
    6 class ComposerStaticInit49e09ab4ddcb00bf557bd452f55d8c72
     6class ComposerStaticInit5320dd4ac59a710446fe426d4f18d387
    77{
    88    public static $files = array('a4a119a56e50fbb293281d9a48007e0e' => __DIR__ . '/..' . '/symfony/polyfill-php80/bootstrap.php', '6e3fae29631ef280660b3cdad06f25a8' => __DIR__ . '/..' . '/symfony/deprecation-contracts/function.php', '320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php', '8825ede83f2f289127722d4e842cf7e8' => __DIR__ . '/..' . '/symfony/polyfill-intl-grapheme/bootstrap.php', 'e69f7f6ee287b969198c3c9d6777bd38' => __DIR__ . '/..' . '/symfony/polyfill-intl-normalizer/bootstrap.php', '0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php', 'b6b991a57620e2fb6b2f66f03fe9ddc2' => __DIR__ . '/..' . '/symfony/string/Resources/functions.php', 'fa9c7a129d9efc034fd91b08d4905857' => __DIR__ . '/../..' . '/constant.php');
     
    1313    {
    1414        return \Closure::bind(function () use($loader) {
    15             $loader->prefixLengthsPsr4 = ComposerStaticInit49e09ab4ddcb00bf557bd452f55d8c72::$prefixLengthsPsr4;
    16             $loader->prefixDirsPsr4 = ComposerStaticInit49e09ab4ddcb00bf557bd452f55d8c72::$prefixDirsPsr4;
    17             $loader->classMap = ComposerStaticInit49e09ab4ddcb00bf557bd452f55d8c72::$classMap;
     15            $loader->prefixLengthsPsr4 = ComposerStaticInit5320dd4ac59a710446fe426d4f18d387::$prefixLengthsPsr4;
     16            $loader->prefixDirsPsr4 = ComposerStaticInit5320dd4ac59a710446fe426d4f18d387::$prefixDirsPsr4;
     17            $loader->classMap = ComposerStaticInit5320dd4ac59a710446fe426d4f18d387::$classMap;
    1818        }, null, ClassLoader::class);
    1919    }
  • yabe-webfont/tags/1.0.48/yabe-webfont.php

    r2932379 r2937299  
    88 * Plugin URI:          https://webfont.yabe.land
    99 * Description:         Self-host Google Fonts and the dedicated custom fonts manager for WordPress with seamless visual/page builders integration.
    10  * Version:             1.0.47
     10 * Version:             1.0.48
    1111 * Requires at least:   6.0
    1212 * Requires PHP:        7.4
  • yabe-webfont/trunk/constant.php

    r2932379 r2937299  
    2626     * @var string
    2727     */
    28     public const VERSION = '1.0.47';
     28    public const VERSION = '1.0.48';
    2929    /**
    3030     * @var int
    3131     */
    32     public const VERSION_ID = 10047;
     32    public const VERSION_ID = 10048;
    3333    /**
    3434     * @var int
     
    4242     * @var int
    4343     */
    44     public const RELEASE_VERSION = 47;
     44    public const RELEASE_VERSION = 48;
    4545    /**
    4646     * @var string
  • yabe-webfont/trunk/readme.txt

    r2932379 r2937299  
    55Requires at least: 6.0
    66Tested up to: 6.2
    7 Stable tag: 1.0.47
     7Stable tag: 1.0.48
    88Requires PHP: 7.4
    99License: GPLv3
     
    7676
    7777
     78= 1.0.48 =
     79* **Improve**: Ensure the uploaded font files are now stored in the `wp-content/uploads/yabe-webfont` folder.
     80
    7881= 1.0.47 =
    7982* **Improve**: Uploaded font files are now stored in the `wp-content/uploads/yabe-webfont` folder instead of the `wp-content/uploads/yyyy/mm` folder.
  • yabe-webfont/trunk/src/Admin/AdminPage.php

    r2928341 r2937299  
    2424        \add_filter('wp_check_filetype_and_ext', static fn($data, $file, $filename, $mimes) => Upload::disable_real_mime_check($data, $file, $filename, $mimes), 10, 4);
    2525        \add_filter('upload_mimes', static fn($mime_types) => Upload::upload_mimes($mime_types), 1000001);
     26        \add_filter('upload_dir', fn($uploads) => $this->upload_dir($uploads), 1000001);
    2627        \add_action('admin_menu', fn() => $this->add_admin_menu());
    2728        if (Config::get('misc.hide_media_library', \false)) {
     
    8990        return \sprintf(\__('Thank you for using <b>Yabe Webfont</b>! Join us on the <a href="%s" target="_blank">Facebook Group</a>.', 'yabe-webfont'), 'https://www.facebook.com/groups/1142662969627943');
    9091    }
     92    private function upload_dir($uploads)
     93    {
     94        if (!isset($_POST['yabe_webfont_font_upload'])) {
     95            return $uploads;
     96        }
     97        return Upload::wpse_custom_upload_dir($uploads);
     98    }
    9199}
  • yabe-webfont/trunk/vendor/autoload.php

    r2932379 r2937299  
    1919}
    2020require_once __DIR__ . '/composer/autoload_real.php';
    21 return ComposerAutoloaderInit49e09ab4ddcb00bf557bd452f55d8c72::getLoader();
     21return ComposerAutoloaderInit5320dd4ac59a710446fe426d4f18d387::getLoader();
  • yabe-webfont/trunk/vendor/composer/autoload_real.php

    r2932379 r2937299  
    44
    55// autoload_real.php @generated by Composer
    6 class ComposerAutoloaderInit49e09ab4ddcb00bf557bd452f55d8c72
     6class ComposerAutoloaderInit5320dd4ac59a710446fe426d4f18d387
    77{
    88    private static $loader;
     
    2222        }
    2323        require __DIR__ . '/platform_check.php';
    24         \spl_autoload_register(array('_YabeWebfont\\ComposerAutoloaderInit49e09ab4ddcb00bf557bd452f55d8c72', 'loadClassLoader'), \true, \true);
     24        \spl_autoload_register(array('_YabeWebfont\\ComposerAutoloaderInit5320dd4ac59a710446fe426d4f18d387', 'loadClassLoader'), \true, \true);
    2525        self::$loader = $loader = new \_YabeWebfont\Composer\Autoload\ClassLoader(\dirname(__DIR__));
    26         \spl_autoload_unregister(array('_YabeWebfont\\ComposerAutoloaderInit49e09ab4ddcb00bf557bd452f55d8c72', 'loadClassLoader'));
     26        \spl_autoload_unregister(array('_YabeWebfont\\ComposerAutoloaderInit5320dd4ac59a710446fe426d4f18d387', 'loadClassLoader'));
    2727        require __DIR__ . '/autoload_static.php';
    28         \call_user_func(\_YabeWebfont\Composer\Autoload\ComposerStaticInit49e09ab4ddcb00bf557bd452f55d8c72::getInitializer($loader));
     28        \call_user_func(\_YabeWebfont\Composer\Autoload\ComposerStaticInit5320dd4ac59a710446fe426d4f18d387::getInitializer($loader));
    2929        $loader->setClassMapAuthoritative(\true);
    3030        $loader->register(\true);
    31         $filesToLoad = \_YabeWebfont\Composer\Autoload\ComposerStaticInit49e09ab4ddcb00bf557bd452f55d8c72::$files;
     31        $filesToLoad = \_YabeWebfont\Composer\Autoload\ComposerStaticInit5320dd4ac59a710446fe426d4f18d387::$files;
    3232        $requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
    3333            if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • yabe-webfont/trunk/vendor/composer/autoload_static.php

    r2932379 r2937299  
    44namespace _YabeWebfont\Composer\Autoload;
    55
    6 class ComposerStaticInit49e09ab4ddcb00bf557bd452f55d8c72
     6class ComposerStaticInit5320dd4ac59a710446fe426d4f18d387
    77{
    88    public static $files = array('a4a119a56e50fbb293281d9a48007e0e' => __DIR__ . '/..' . '/symfony/polyfill-php80/bootstrap.php', '6e3fae29631ef280660b3cdad06f25a8' => __DIR__ . '/..' . '/symfony/deprecation-contracts/function.php', '320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php', '8825ede83f2f289127722d4e842cf7e8' => __DIR__ . '/..' . '/symfony/polyfill-intl-grapheme/bootstrap.php', 'e69f7f6ee287b969198c3c9d6777bd38' => __DIR__ . '/..' . '/symfony/polyfill-intl-normalizer/bootstrap.php', '0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php', 'b6b991a57620e2fb6b2f66f03fe9ddc2' => __DIR__ . '/..' . '/symfony/string/Resources/functions.php', 'fa9c7a129d9efc034fd91b08d4905857' => __DIR__ . '/../..' . '/constant.php');
     
    1313    {
    1414        return \Closure::bind(function () use($loader) {
    15             $loader->prefixLengthsPsr4 = ComposerStaticInit49e09ab4ddcb00bf557bd452f55d8c72::$prefixLengthsPsr4;
    16             $loader->prefixDirsPsr4 = ComposerStaticInit49e09ab4ddcb00bf557bd452f55d8c72::$prefixDirsPsr4;
    17             $loader->classMap = ComposerStaticInit49e09ab4ddcb00bf557bd452f55d8c72::$classMap;
     15            $loader->prefixLengthsPsr4 = ComposerStaticInit5320dd4ac59a710446fe426d4f18d387::$prefixLengthsPsr4;
     16            $loader->prefixDirsPsr4 = ComposerStaticInit5320dd4ac59a710446fe426d4f18d387::$prefixDirsPsr4;
     17            $loader->classMap = ComposerStaticInit5320dd4ac59a710446fe426d4f18d387::$classMap;
    1818        }, null, ClassLoader::class);
    1919    }
  • yabe-webfont/trunk/yabe-webfont.php

    r2932379 r2937299  
    88 * Plugin URI:          https://webfont.yabe.land
    99 * Description:         Self-host Google Fonts and the dedicated custom fonts manager for WordPress with seamless visual/page builders integration.
    10  * Version:             1.0.47
     10 * Version:             1.0.48
    1111 * Requires at least:   6.0
    1212 * Requires PHP:        7.4
Note: See TracChangeset for help on using the changeset viewer.