Plugin Directory

Changeset 2754584


Ignore:
Timestamp:
07/11/2022 01:09:34 PM (4 years ago)
Author:
graffino
Message:

Add CPTM_DONT_GENERATE_ICON constant for disabling 16x16 image generation

Location:
custom-post-type-maker
Files:
3 deleted
4 edited
8 copied

Legend:

Unmodified
Added
Removed
  • custom-post-type-maker/tags/1.2.0/CHANGELOG.md

    r2553487 r2754584  
    11# Changelog
     2
     3## 1.2.0
     4
     5- Added `CPTM_DONT_GENERATE_ICON` constant for disabling the 16x16px image_size via wp-config.php as suggested by @clubside and @ldeejay
     6- Fixed spelling as suggested by @ldeejay
     7- Compatibility with latest version of WP
    28
    39## 1.1.15
  • custom-post-type-maker/tags/1.2.0/README.md

    r2553487 r2754584  
    1111## Installation
    1212
    13 1. Upload 'custom-post-type-maker' to the '/wp-content/plugins/' directory
     131. Upload `custom-post-type-maker` to the `/wp-content/plugins/` directory
    14142. Activate the plugin through the 'Plugins' menu in WordPress
    15153. Click the new menu item 'Post Types' to create a Custom Post Type or a custom Taxonomy
     16
     17## Additional configuration
     18
     19You can add `CPTM_DONT_GENERATE_ICON` in `wp-config.php` to prevent CPTM to generate the 16x16px WordPress image_size. You can do this after you upload an initial icon.
     20We've added this option because some users have very large image galleries and the additional WordPress image_size matters.
    1621
    1722## Frequently Asked Questions
     
    2934## Changelog
    3035
    31 ## 1.1.15
    32 
    33 - Better sanitize taxonomy name as suggested by @ldeejay
    34 
    35 ## 1.1.14
    36 
    37 - Compatibility with future version of WP
    38 
    39 ## 1.1.13
    40 
    41 - Fix translations. Add .pot template file, reported by @wicko77
    42 
    43 ## 1.1.12
    44 
    45 - Remove 'All' from taxonomy names as suggested by @gnowland
    46 
    47 ## 1.1.11
    48 
    49 - Update assets.
    50 
    51 ## 1.1.10
    52 
    53 - Compatibility with future version of WP
    54 
    55 ### 1.1.9
    56 
    57 - Compatibility with future version of WP
    58 
    59 ### 1.1.8
    60 
    61 - Fixes undefined variable (Thanks @richardshea,@kubik101)[#20](https://github.com/Graffino/Custom-Post-Type-Maker/issues/21), [#20](https://github.com/Graffino/Custom-Post-Type-Maker/issues/21)
    62 
    63 ### 1.1.7
    64 
    65 - Makes code compatible with WordPressCore PHP Linter
    66 - Marks plugin compatible with future WordPress versions
    67 
    68 ### 1.1.6
    69 
    70 - Fixes tab navigation (Thanks @mediengestalter2)[#16](https://github.com/Graffino/Custom-Post-Type-Maker/issues/16)
    71 
    72 ### 1.1.5
    73 
    74 - Add ability to show custom post in REST API (Thanks @asithade)[#14](https://github.com/Graffino/Custom-Post-Type-Maker/issues/14).
    75 
    76 ### 1.1.4
    77 
    78 - Add ability to show custom taxonomy column in post listing.
    79 
    80 ### 1.1.3
    81 
    82 - Removed forgotten development dump. Sorry about that.
    83 
    84 ### 1.1.2
    85 
    86 - [Bugfix] Make `with_front` available in `register_post` when set to `false` (Credit: @cmerrick). Closes: [#7](https://github.com/Graffino/Custom-Post-Type-Maker/issues/7)
    87 
    88 ### 1.1.1
    89 
    90 - [Feature] Auto-flush rewrite rules on: custom post save, plugin activation, plugin deactivation.
    91 - [Bugfix] Made `publicly_queryable` default to true. This fixes permalink errors after upgrading to v1.1.0 on existing installations.
    92 - [Localization] Add french translation. (Credit: @momo-fr).
    93 
    94 ### 1.1.0
    95 
    96 - [Feature] Implemented `publicly_queryable`. Closes: [#5](https://github.com/Graffino/Custom-Post-Type-Maker/issues/5)
    97 
    98 ### 1.0.4
    99 
    100 - [Bugfix] Renamed plugin to match WP Plugins
    101 
    102 ### 1.0.3
    103 
    104 - [Bugfix] Fix typos
    105 
    106 ### 1.0.2
    107 
    108 - [Bugfix] Fixed `undefined` error that prevented media library from loading
    109 
    110 ### 1.0.1
    111 
    112 - Compatibility with future version of WP
    113 
    114 ### 1.0.0
    115 
    116 - [Added] Ability to select [DashIcons](https://developer.wordpress.org/resource/dashicons/#layout) as Custom Post Type icon.
    117 - [Bugfix] Fixed `add_utility_page provokes "deprecated" notice in 4.5.2`
     36See [CHANGELOG.md](https://raw.githubusercontent.com/Graffino/Custom-Post-Type-Maker/develop/CHANGELOG.md).
  • custom-post-type-maker/tags/1.2.0/class-cptm.php

    r2553487 r2754584  
    44Plugin URI: https://github.com/Graffino/custom-post-type-maker
    55Description: Custom Post Type Maker lets you create Custom Post Types and custom Taxonomies in a user friendly way.
    6 Version: 1.1.15
     6Version: 1.2.0
    77Author: Graffino
    88Author URI: http://www.graffino.com/
     
    6262        $this->dir     = plugins_url( '', __FILE__ );
    6363        $this->path    = plugin_dir_path( __FILE__ );
    64         $this->version = '1.1.15';
     64        $this->version = '1.2.0';
    6565
    6666        // actions
     
    161161
    162162        // Add image size for the Custom Post Type icon
    163         if ( function_exists( 'add_image_size' ) ) {
     163        if ( function_exists( 'add_image_size' ) && ! defined( 'CPTM_DONT_GENERATE_ICON' ) ) {
    164164            add_image_size( 'cptm_icon', 16, 16, true );
    165165        }
     
    742742                        <div class="current-cptm-icon">
    743743                        <?php if ( $cptm_icon_url ) { ?><img src="<?php echo $cptm_icon_url; ?>" /><?php } ?></div>
    744                         <a href="/" class="remove-cptm-icon button-secondary"<?php if ( ! $cptm_icon_url ) { ?> style="display: none;"<?php } ?> tabindex="16">Remove icon</a>
    745                         <a  href="/"class="media-uploader-button button-primary" data-post-id="<?php echo $post->ID; ?>" tabindex="17"><?php if ( ! $cptm_icon_url ) { ?><?php _e( 'Add icon', 'custom-post-type-maker' ); ?><?php } else { ?><?php _e( 'Edit icon', 'custom-post-type-maker' ); ?><?php } ?></a>
     744                        <a href="/" class="remove-cptm-icon button-secondary"<?php if ( ! $cptm_icon_url ) { ?> style="display: none;"<?php } ?> tabindex="16">Remove Icon</a>
     745                        <a  href="/"class="media-uploader-button button-primary" data-post-id="<?php echo $post->ID; ?>" tabindex="17"><?php if ( ! $cptm_icon_url ) { ?><?php _e( 'Add icon', 'custom-post-type-maker' ); ?><?php } else { ?><?php _e( 'Upload Icon', 'custom-post-type-maker' ); ?><?php } ?></a>
    746746                    </div>
    747747                    <input type="hidden" name="cptm_icon_url" id="cptm_icon_url" class="widefat" value="<?php echo $cptm_icon_url; ?>" />
  • custom-post-type-maker/tags/1.2.0/readme.txt

    r2553487 r2754584  
    33Tags: custom, post, type, custom post type, custom post types, maker, make, cpt, post types, taxonomy, taxonomies, tax, custom taxonomies
    44Requires at least: 3.0.0
    5 Tested up to: 5.7
    6 Stable tag: 1.1.15
     5Tested up to: 6.0
     6Stable tag: 1.2.0
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    30302. Activate the plugin through the 'Plugins' menu in WordPress.
    31313. Click the new menu item 'Post Types' to create a Custom Post Type or a custom Taxonomy.
     32
     33== Additional configuration ==
     34
     35You can add `CPTM_DONT_GENERATE_ICON` in `wp-config.php` to prevent CPTM to generate the 16x16px WordPress image_size. You can do this after you upload an initial icon.
     36We've added this option because some users have very large image galleries and the additional WordPress image_size matters.
    3237
    3338== Frequently Asked Questions ==
     
    6671
    6772== Changelog ==
     73
     74= 1.2.0 =
     75
     76- Added `CPTM_DONT_GENERATE_ICON` constant for disabling the 16x16px image_size via wp-config.php as suggested by @clubside and @ldeejay
     77- Fixed spelling as suggested by @ldeejay
     78- Compatibility with latest version of WP
    6879
    6980= 1.1.15 =
  • custom-post-type-maker/trunk/CHANGELOG.md

    r2553487 r2754584  
    11# Changelog
     2
     3## 1.2.0
     4
     5- Added `CPTM_DONT_GENERATE_ICON` constant for disabling the 16x16px image_size via wp-config.php as suggested by @clubside and @ldeejay
     6- Fixed spelling as suggested by @ldeejay
     7- Compatibility with latest version of WP
    28
    39## 1.1.15
  • custom-post-type-maker/trunk/README.md

    r2553487 r2754584  
    1111## Installation
    1212
    13 1. Upload 'custom-post-type-maker' to the '/wp-content/plugins/' directory
     131. Upload `custom-post-type-maker` to the `/wp-content/plugins/` directory
    14142. Activate the plugin through the 'Plugins' menu in WordPress
    15153. Click the new menu item 'Post Types' to create a Custom Post Type or a custom Taxonomy
     16
     17## Additional configuration
     18
     19You can add `CPTM_DONT_GENERATE_ICON` in `wp-config.php` to prevent CPTM to generate the 16x16px WordPress image_size. You can do this after you upload an initial icon.
     20We've added this option because some users have very large image galleries and the additional WordPress image_size matters.
    1621
    1722## Frequently Asked Questions
     
    2934## Changelog
    3035
    31 ## 1.1.15
    32 
    33 - Better sanitize taxonomy name as suggested by @ldeejay
    34 
    35 ## 1.1.14
    36 
    37 - Compatibility with future version of WP
    38 
    39 ## 1.1.13
    40 
    41 - Fix translations. Add .pot template file, reported by @wicko77
    42 
    43 ## 1.1.12
    44 
    45 - Remove 'All' from taxonomy names as suggested by @gnowland
    46 
    47 ## 1.1.11
    48 
    49 - Update assets.
    50 
    51 ## 1.1.10
    52 
    53 - Compatibility with future version of WP
    54 
    55 ### 1.1.9
    56 
    57 - Compatibility with future version of WP
    58 
    59 ### 1.1.8
    60 
    61 - Fixes undefined variable (Thanks @richardshea,@kubik101)[#20](https://github.com/Graffino/Custom-Post-Type-Maker/issues/21), [#20](https://github.com/Graffino/Custom-Post-Type-Maker/issues/21)
    62 
    63 ### 1.1.7
    64 
    65 - Makes code compatible with WordPressCore PHP Linter
    66 - Marks plugin compatible with future WordPress versions
    67 
    68 ### 1.1.6
    69 
    70 - Fixes tab navigation (Thanks @mediengestalter2)[#16](https://github.com/Graffino/Custom-Post-Type-Maker/issues/16)
    71 
    72 ### 1.1.5
    73 
    74 - Add ability to show custom post in REST API (Thanks @asithade)[#14](https://github.com/Graffino/Custom-Post-Type-Maker/issues/14).
    75 
    76 ### 1.1.4
    77 
    78 - Add ability to show custom taxonomy column in post listing.
    79 
    80 ### 1.1.3
    81 
    82 - Removed forgotten development dump. Sorry about that.
    83 
    84 ### 1.1.2
    85 
    86 - [Bugfix] Make `with_front` available in `register_post` when set to `false` (Credit: @cmerrick). Closes: [#7](https://github.com/Graffino/Custom-Post-Type-Maker/issues/7)
    87 
    88 ### 1.1.1
    89 
    90 - [Feature] Auto-flush rewrite rules on: custom post save, plugin activation, plugin deactivation.
    91 - [Bugfix] Made `publicly_queryable` default to true. This fixes permalink errors after upgrading to v1.1.0 on existing installations.
    92 - [Localization] Add french translation. (Credit: @momo-fr).
    93 
    94 ### 1.1.0
    95 
    96 - [Feature] Implemented `publicly_queryable`. Closes: [#5](https://github.com/Graffino/Custom-Post-Type-Maker/issues/5)
    97 
    98 ### 1.0.4
    99 
    100 - [Bugfix] Renamed plugin to match WP Plugins
    101 
    102 ### 1.0.3
    103 
    104 - [Bugfix] Fix typos
    105 
    106 ### 1.0.2
    107 
    108 - [Bugfix] Fixed `undefined` error that prevented media library from loading
    109 
    110 ### 1.0.1
    111 
    112 - Compatibility with future version of WP
    113 
    114 ### 1.0.0
    115 
    116 - [Added] Ability to select [DashIcons](https://developer.wordpress.org/resource/dashicons/#layout) as Custom Post Type icon.
    117 - [Bugfix] Fixed `add_utility_page provokes "deprecated" notice in 4.5.2`
     36See [CHANGELOG.md](https://raw.githubusercontent.com/Graffino/Custom-Post-Type-Maker/develop/CHANGELOG.md).
  • custom-post-type-maker/trunk/class-cptm.php

    r2553487 r2754584  
    44Plugin URI: https://github.com/Graffino/custom-post-type-maker
    55Description: Custom Post Type Maker lets you create Custom Post Types and custom Taxonomies in a user friendly way.
    6 Version: 1.1.15
     6Version: 1.2.0
    77Author: Graffino
    88Author URI: http://www.graffino.com/
     
    6262        $this->dir     = plugins_url( '', __FILE__ );
    6363        $this->path    = plugin_dir_path( __FILE__ );
    64         $this->version = '1.1.15';
     64        $this->version = '1.2.0';
    6565
    6666        // actions
     
    161161
    162162        // Add image size for the Custom Post Type icon
    163         if ( function_exists( 'add_image_size' ) ) {
     163        if ( function_exists( 'add_image_size' ) && ! defined( 'CPTM_DONT_GENERATE_ICON' ) ) {
    164164            add_image_size( 'cptm_icon', 16, 16, true );
    165165        }
     
    742742                        <div class="current-cptm-icon">
    743743                        <?php if ( $cptm_icon_url ) { ?><img src="<?php echo $cptm_icon_url; ?>" /><?php } ?></div>
    744                         <a href="/" class="remove-cptm-icon button-secondary"<?php if ( ! $cptm_icon_url ) { ?> style="display: none;"<?php } ?> tabindex="16">Remove icon</a>
    745                         <a  href="/"class="media-uploader-button button-primary" data-post-id="<?php echo $post->ID; ?>" tabindex="17"><?php if ( ! $cptm_icon_url ) { ?><?php _e( 'Add icon', 'custom-post-type-maker' ); ?><?php } else { ?><?php _e( 'Edit icon', 'custom-post-type-maker' ); ?><?php } ?></a>
     744                        <a href="/" class="remove-cptm-icon button-secondary"<?php if ( ! $cptm_icon_url ) { ?> style="display: none;"<?php } ?> tabindex="16">Remove Icon</a>
     745                        <a  href="/"class="media-uploader-button button-primary" data-post-id="<?php echo $post->ID; ?>" tabindex="17"><?php if ( ! $cptm_icon_url ) { ?><?php _e( 'Add icon', 'custom-post-type-maker' ); ?><?php } else { ?><?php _e( 'Upload Icon', 'custom-post-type-maker' ); ?><?php } ?></a>
    746746                    </div>
    747747                    <input type="hidden" name="cptm_icon_url" id="cptm_icon_url" class="widefat" value="<?php echo $cptm_icon_url; ?>" />
  • custom-post-type-maker/trunk/readme.txt

    r2553487 r2754584  
    33Tags: custom, post, type, custom post type, custom post types, maker, make, cpt, post types, taxonomy, taxonomies, tax, custom taxonomies
    44Requires at least: 3.0.0
    5 Tested up to: 5.7
    6 Stable tag: 1.1.15
     5Tested up to: 6.0
     6Stable tag: 1.2.0
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    30302. Activate the plugin through the 'Plugins' menu in WordPress.
    31313. Click the new menu item 'Post Types' to create a Custom Post Type or a custom Taxonomy.
     32
     33== Additional configuration ==
     34
     35You can add `CPTM_DONT_GENERATE_ICON` in `wp-config.php` to prevent CPTM to generate the 16x16px WordPress image_size. You can do this after you upload an initial icon.
     36We've added this option because some users have very large image galleries and the additional WordPress image_size matters.
    3237
    3338== Frequently Asked Questions ==
     
    6671
    6772== Changelog ==
     73
     74= 1.2.0 =
     75
     76- Added `CPTM_DONT_GENERATE_ICON` constant for disabling the 16x16px image_size via wp-config.php as suggested by @clubside and @ldeejay
     77- Fixed spelling as suggested by @ldeejay
     78- Compatibility with latest version of WP
    6879
    6980= 1.1.15 =
Note: See TracChangeset for help on using the changeset viewer.