Plugin Directory

Changeset 3170586


Ignore:
Timestamp:
10/17/2024 09:18:59 AM (5 months ago)
Author:
morceaudebois
Message:

1.1.3 version, removing SVG upload

Location:
debrandify
Files:
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • debrandify/tags/1.1.3/debrandify.php

    r2971254 r3170586  
    22/**
    33 * @package Debrandify
    4  * @version 1.1.1
     4 * @version 1.1.3
    55 */
    66/*
    77    Plugin Name: Debrandify
    8     Version: 1.1.1
     8    Version: 1.1.3
    99    Author: Tahoe Beetschen
    1010    Author URI: https://tahoe.be
     
    319319    }
    320320
    321     if (dbrdify_checkOption('svg')) {
    322         // Shamelessly stolen here https://wpengine.com/resources/enable-svg-wordpress/
    323        
    324         // Allow SVG
    325         add_filter('wp_check_filetype_and_ext', function($data, $file, $filename, $mimes) {
    326             global $wp_version;
    327 
    328             if ($wp_version !== '4.7.1') return $data;
    329        
    330             $filetype = wp_check_filetype($filename, $mimes);
    331        
    332             return [
    333                 'ext'             => $filetype['ext'],
    334                 'type'            => $filetype['type'],
    335                 'proper_filename' => $data['proper_filename']
    336             ];
    337         }, 10, 4);
    338        
    339         add_filter('upload_mimes', function($mimes) {
    340             $mimes['svg'] = 'image/svg+xml';
    341             return $mimes;
    342         });
    343        
    344         add_action('admin_head', function() {
    345             echo '<style type="text/css">
    346                 .attachment-266x266, .thumbnail img {
    347                     width: 100% !important;
    348                     height: auto !important;
    349                 }
    350                 </style>';
    351         });
    352     }
    353 
    354321    if (dbrdify_checkOption('centerLogin')) {
    355322        add_action('login_head', function() { ?>
  • debrandify/tags/1.1.3/readme.md

    r2971254 r3170586  
    11<h1 align="center">
    2   <a href="https://tahoe.be"><img src="https://raw.githubusercontent.com/morceaudebois/debrandify/master/src/images/debrandify.png" width="70%" alt=""></a>
     2  <a href="https://wordpress.org/plugins/debrandify/"><img src="https://raw.githubusercontent.com/morceaudebois/debrandify/master/src/images/debrandify.png" width="70%" alt="debrandify logo"></a>
    33</h1>
     4
     5<p align="center">
     6  <a href="https://wordpress.org/plugins/debrandify/"><img src="https://raw.githubusercontent.com/morceaudebois/debrandify/master/assets/wordpress_label.svg" width="180"/></a>
     7</p>
    48
    59Debrandify (formerly DeWordPressify) is a toolkit plugin that adds plenty of settings to customise and improve WordPress. You'll be able to remove WordPress' branding and replace it with your own as well as get rid of some of the bloat that comes built-in. Here's the key features:
  • debrandify/tags/1.1.3/readme.txt

    r3121950 r3170586  
    22Contributors: morceaudebois
    33Donate link: https://ko-fi.com/tahoe
    4 Tags: lightweight, minimalism, cleanup, branding, customise
     4Tags: branding, rebrand, rebranding, customise, lightweight, minimalism, cleanup, remove
    55Requires at least: 4.7
    66Tested up to: 6.5.5
    7 Stable tag: 1.1.1
     7Stable tag: 1.1.3
    88Requires PHP: 7.0
    99License: GPLv2 or later
     
    3333== Changelog ==
    3434
     35= 1.1.3 =
     36* Removed SVG upload option as it's a security concern
     37
     38= 1.1.2 =
     39* Tested up to WordPress 6.5.5
     40
    3541= 1.1.1 =
    3642* Review/donate notice only appears to those who can manage plugins
  • debrandify/tags/1.1.3/src/php/functions.php

    r2971205 r3170586  
    3030
    3131        // bonus tab
    32         'svg' => 'no',
    3332        'centerLogin' => 'no',
    3433        'restAPI' => 'yes',
  • debrandify/tags/1.1.3/src/php/settings.php

    r2971205 r3170586  
    149149                                break;
    150150                            case 'bonus':
    151                                 $this->printCheckbox('svg', __('SVG upload', 'debrandify'));
    152151                                $this->printCheckbox('centerLogin', __('Center login form vertically', 'debrandify'));
    153152                                $this->printCheckbox('restAPI', __('REST API', 'debrandify'));
  • debrandify/trunk/debrandify.php

    r2971254 r3170586  
    22/**
    33 * @package Debrandify
    4  * @version 1.1.1
     4 * @version 1.1.3
    55 */
    66/*
    77    Plugin Name: Debrandify
    8     Version: 1.1.1
     8    Version: 1.1.3
    99    Author: Tahoe Beetschen
    1010    Author URI: https://tahoe.be
     
    319319    }
    320320
    321     if (dbrdify_checkOption('svg')) {
    322         // Shamelessly stolen here https://wpengine.com/resources/enable-svg-wordpress/
    323        
    324         // Allow SVG
    325         add_filter('wp_check_filetype_and_ext', function($data, $file, $filename, $mimes) {
    326             global $wp_version;
    327 
    328             if ($wp_version !== '4.7.1') return $data;
    329        
    330             $filetype = wp_check_filetype($filename, $mimes);
    331        
    332             return [
    333                 'ext'             => $filetype['ext'],
    334                 'type'            => $filetype['type'],
    335                 'proper_filename' => $data['proper_filename']
    336             ];
    337         }, 10, 4);
    338        
    339         add_filter('upload_mimes', function($mimes) {
    340             $mimes['svg'] = 'image/svg+xml';
    341             return $mimes;
    342         });
    343        
    344         add_action('admin_head', function() {
    345             echo '<style type="text/css">
    346                 .attachment-266x266, .thumbnail img {
    347                     width: 100% !important;
    348                     height: auto !important;
    349                 }
    350                 </style>';
    351         });
    352     }
    353 
    354321    if (dbrdify_checkOption('centerLogin')) {
    355322        add_action('login_head', function() { ?>
  • debrandify/trunk/readme.md

    r2971254 r3170586  
    11<h1 align="center">
    2   <a href="https://tahoe.be"><img src="https://raw.githubusercontent.com/morceaudebois/debrandify/master/src/images/debrandify.png" width="70%" alt=""></a>
     2  <a href="https://wordpress.org/plugins/debrandify/"><img src="https://raw.githubusercontent.com/morceaudebois/debrandify/master/src/images/debrandify.png" width="70%" alt="debrandify logo"></a>
    33</h1>
     4
     5<p align="center">
     6  <a href="https://wordpress.org/plugins/debrandify/"><img src="https://raw.githubusercontent.com/morceaudebois/debrandify/master/assets/wordpress_label.svg" width="180"/></a>
     7</p>
    48
    59Debrandify (formerly DeWordPressify) is a toolkit plugin that adds plenty of settings to customise and improve WordPress. You'll be able to remove WordPress' branding and replace it with your own as well as get rid of some of the bloat that comes built-in. Here's the key features:
  • debrandify/trunk/readme.txt

    r3121950 r3170586  
    22Contributors: morceaudebois
    33Donate link: https://ko-fi.com/tahoe
    4 Tags: lightweight, minimalism, cleanup, branding, customise
     4Tags: branding, rebrand, rebranding, customise, lightweight, minimalism, cleanup, remove
    55Requires at least: 4.7
    66Tested up to: 6.5.5
    7 Stable tag: 1.1.1
     7Stable tag: 1.1.3
    88Requires PHP: 7.0
    99License: GPLv2 or later
     
    3333== Changelog ==
    3434
     35= 1.1.3 =
     36* Removed SVG upload option as it's a security concern
     37
     38= 1.1.2 =
     39* Tested up to WordPress 6.5.5
     40
    3541= 1.1.1 =
    3642* Review/donate notice only appears to those who can manage plugins
  • debrandify/trunk/src/php/functions.php

    r2971205 r3170586  
    3030
    3131        // bonus tab
    32         'svg' => 'no',
    3332        'centerLogin' => 'no',
    3433        'restAPI' => 'yes',
  • debrandify/trunk/src/php/settings.php

    r2971205 r3170586  
    149149                                break;
    150150                            case 'bonus':
    151                                 $this->printCheckbox('svg', __('SVG upload', 'debrandify'));
    152151                                $this->printCheckbox('centerLogin', __('Center login form vertically', 'debrandify'));
    153152                                $this->printCheckbox('restAPI', __('REST API', 'debrandify'));
Note: See TracChangeset for help on using the changeset viewer.