Changeset 3313963
- Timestamp:
- 06/18/2025 02:59:41 PM (6 months ago)
- Location:
- zenpress
- Files:
-
- 54 added
- 54 deleted
- 4 edited
- 1 copied
-
tags/1.0.8 (copied) (copied from zenpress/trunk)
-
tags/1.0.8/inc/performance/disable-adjacent-posts.php (added)
-
tags/1.0.8/inc/performance/disable-dashicons.php (added)
-
tags/1.0.8/inc/performance/disable-dns-prefetch.php (added)
-
tags/1.0.8/inc/performance/disable-emoji-scripts.php (added)
-
tags/1.0.8/inc/performance/disable-jquery-migrate.php (added)
-
tags/1.0.8/inc/performance/disable-oembed.php (added)
-
tags/1.0.8/inc/performance/disable-pdf-thumbnails.php (added)
-
tags/1.0.8/inc/performance/disable-rss.php (added)
-
tags/1.0.8/inc/performance/disable-shortlink.php (added)
-
tags/1.0.8/inc/performance/disable-wlw-manifest.php (added)
-
tags/1.0.8/inc/performance/disable-woocommerce-cart-fragments.php (added)
-
tags/1.0.8/inc/performance/disable-woocommerce-scripts-styles.php (added)
-
tags/1.0.8/inc/performance/disable-woocommerce-stripe-scripts.php (added)
-
tags/1.0.8/inc/performance/disable-woocommerce-widgets.php (added)
-
tags/1.0.8/inc/performance/disable__adjacent-posts.php (deleted)
-
tags/1.0.8/inc/performance/disable__dashicons.php (deleted)
-
tags/1.0.8/inc/performance/disable__dns-prefetch.php (deleted)
-
tags/1.0.8/inc/performance/disable__emoji-scripts.php (deleted)
-
tags/1.0.8/inc/performance/disable__jquery-migrate.php (deleted)
-
tags/1.0.8/inc/performance/disable__oembed.php (deleted)
-
tags/1.0.8/inc/performance/disable__pdf-thumbnails.php (deleted)
-
tags/1.0.8/inc/performance/disable__rss.php (deleted)
-
tags/1.0.8/inc/performance/disable__shortlink.php (deleted)
-
tags/1.0.8/inc/performance/disable__wlw-manifest.php (deleted)
-
tags/1.0.8/inc/performance/disable__woocommerce-cart-fragments.php (deleted)
-
tags/1.0.8/inc/performance/disable__woocommerce-scripts-styles.php (deleted)
-
tags/1.0.8/inc/performance/disable__woocommerce-stripe-scripts.php (deleted)
-
tags/1.0.8/inc/performance/disable__woocommerce-widgets.php (deleted)
-
tags/1.0.8/inc/performance/remove-gutenberg-unwanted-block-patterns.php (added)
-
tags/1.0.8/inc/performance/remove-rest-api-link.php (added)
-
tags/1.0.8/inc/performance/remove-woocommerce-patterns.php (added)
-
tags/1.0.8/inc/performance/remove__gutenberg-unwanted-block-patterns.php (deleted)
-
tags/1.0.8/inc/performance/remove__rest-api-link.php (deleted)
-
tags/1.0.8/inc/performance/remove__woocommerce-patterns.php (deleted)
-
tags/1.0.8/inc/performance/separate-gutenberg-core-block-styles.php (added)
-
tags/1.0.8/inc/performance/separate__gutenberg-core-block-styles.php (deleted)
-
tags/1.0.8/inc/security/block-user-enumeration.php (added)
-
tags/1.0.8/inc/security/block__user-enumeration.php (deleted)
-
tags/1.0.8/inc/security/disable-author-archives.php (added)
-
tags/1.0.8/inc/security/disable-pingback-trackback.php (added)
-
tags/1.0.8/inc/security/disable-xmlrpc-rsdlink.php (added)
-
tags/1.0.8/inc/security/disable__author-archives.php (deleted)
-
tags/1.0.8/inc/security/disable__pingback-trackback.php (deleted)
-
tags/1.0.8/inc/security/disable__xmlrpc-rsdlink.php (deleted)
-
tags/1.0.8/inc/security/hide-woocommerce-version.php (added)
-
tags/1.0.8/inc/security/hide-wordpress-version.php (added)
-
tags/1.0.8/inc/security/hide__woocommerce-version.php (deleted)
-
tags/1.0.8/inc/security/hide__wordpress-version.php (deleted)
-
tags/1.0.8/inc/security/protect-wp-login.php (added)
-
tags/1.0.8/inc/security/protect__wp-login.php (deleted)
-
tags/1.0.8/inc/ui/clean-admin-bar.php (added)
-
tags/1.0.8/inc/ui/clean-dashboard-items.php (added)
-
tags/1.0.8/inc/ui/clean__admin-bar.php (deleted)
-
tags/1.0.8/inc/ui/clean__dashboard-items.php (deleted)
-
tags/1.0.8/readme.txt (modified) (6 diffs)
-
tags/1.0.8/zenpress.php (modified) (2 diffs)
-
trunk/inc/performance/disable-adjacent-posts.php (added)
-
trunk/inc/performance/disable-dashicons.php (added)
-
trunk/inc/performance/disable-dns-prefetch.php (added)
-
trunk/inc/performance/disable-emoji-scripts.php (added)
-
trunk/inc/performance/disable-jquery-migrate.php (added)
-
trunk/inc/performance/disable-oembed.php (added)
-
trunk/inc/performance/disable-pdf-thumbnails.php (added)
-
trunk/inc/performance/disable-rss.php (added)
-
trunk/inc/performance/disable-shortlink.php (added)
-
trunk/inc/performance/disable-wlw-manifest.php (added)
-
trunk/inc/performance/disable-woocommerce-cart-fragments.php (added)
-
trunk/inc/performance/disable-woocommerce-scripts-styles.php (added)
-
trunk/inc/performance/disable-woocommerce-stripe-scripts.php (added)
-
trunk/inc/performance/disable-woocommerce-widgets.php (added)
-
trunk/inc/performance/disable__adjacent-posts.php (deleted)
-
trunk/inc/performance/disable__dashicons.php (deleted)
-
trunk/inc/performance/disable__dns-prefetch.php (deleted)
-
trunk/inc/performance/disable__emoji-scripts.php (deleted)
-
trunk/inc/performance/disable__jquery-migrate.php (deleted)
-
trunk/inc/performance/disable__oembed.php (deleted)
-
trunk/inc/performance/disable__pdf-thumbnails.php (deleted)
-
trunk/inc/performance/disable__rss.php (deleted)
-
trunk/inc/performance/disable__shortlink.php (deleted)
-
trunk/inc/performance/disable__wlw-manifest.php (deleted)
-
trunk/inc/performance/disable__woocommerce-cart-fragments.php (deleted)
-
trunk/inc/performance/disable__woocommerce-scripts-styles.php (deleted)
-
trunk/inc/performance/disable__woocommerce-stripe-scripts.php (deleted)
-
trunk/inc/performance/disable__woocommerce-widgets.php (deleted)
-
trunk/inc/performance/remove-gutenberg-unwanted-block-patterns.php (added)
-
trunk/inc/performance/remove-rest-api-link.php (added)
-
trunk/inc/performance/remove-woocommerce-patterns.php (added)
-
trunk/inc/performance/remove__gutenberg-unwanted-block-patterns.php (deleted)
-
trunk/inc/performance/remove__rest-api-link.php (deleted)
-
trunk/inc/performance/remove__woocommerce-patterns.php (deleted)
-
trunk/inc/performance/separate-gutenberg-core-block-styles.php (added)
-
trunk/inc/performance/separate__gutenberg-core-block-styles.php (deleted)
-
trunk/inc/security/block-user-enumeration.php (added)
-
trunk/inc/security/block__user-enumeration.php (deleted)
-
trunk/inc/security/disable-author-archives.php (added)
-
trunk/inc/security/disable-pingback-trackback.php (added)
-
trunk/inc/security/disable-xmlrpc-rsdlink.php (added)
-
trunk/inc/security/disable__author-archives.php (deleted)
-
trunk/inc/security/disable__pingback-trackback.php (deleted)
-
trunk/inc/security/disable__xmlrpc-rsdlink.php (deleted)
-
trunk/inc/security/hide-woocommerce-version.php (added)
-
trunk/inc/security/hide-wordpress-version.php (added)
-
trunk/inc/security/hide__woocommerce-version.php (deleted)
-
trunk/inc/security/hide__wordpress-version.php (deleted)
-
trunk/inc/security/protect-wp-login.php (added)
-
trunk/inc/security/protect__wp-login.php (deleted)
-
trunk/inc/ui/clean-admin-bar.php (added)
-
trunk/inc/ui/clean-dashboard-items.php (added)
-
trunk/inc/ui/clean__admin-bar.php (deleted)
-
trunk/inc/ui/clean__dashboard-items.php (deleted)
-
trunk/readme.txt (modified) (6 diffs)
-
trunk/zenpress.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
zenpress/tags/1.0.8/readme.txt
r3285781 r3313963 5 5 Requires at least: 6.0 6 6 Tested up to: 6.8 7 Stable tag: 1.0. 67 Stable tag: 1.0.8 8 8 Requires PHP: 7.4 9 9 License: GPLv2 or later … … 38 38 * Disable unnecessary Stripe scripts on WooCommerce pages 39 39 * Disable WooCommerce widgets 40 * Disable unwanted default block patterns in gutenberg editor40 * Remove unwanted default block patterns in gutenberg editor 41 41 * Remove REST API link from the site head 42 42 * Remove WooCommerce patterns … … 55 55 = User interface = 56 56 57 * Cleans up the WordPress Admin Bar58 * Removes redudant items from the WordPress Dashboard57 * Cleans up the WordPress admin Bar 58 * Cleans up the WordPress dashboard items 59 59 60 60 == Configuration options == … … 137 137 == Changelog == 138 138 139 = 1.0.8 = 140 141 - UI : Remove smash baloon ads meta box 142 - Global : Files naming and call for scalability 143 144 = 1.0.7 = 145 146 - ZenPress tested for WordPress 6.8.1 147 - UI : Remove site health meta box 148 - UI : Remove WooCommerce admin dashboard setup metabox 149 139 150 = 1.0.6 = 140 151 … … 150 161 151 162 - Fix ABSPATH on woocommerce patterns snippets. 152 - Disable RSS feeds except main one.153 - Remove RSS feeds links in head except main one.154 - Remove Rest API link in head.155 - Remove WP Mail SMTP ads widget.163 - Performance : Disable RSS feeds except main one. 164 - Performance : Remove RSS feeds links in head except main one. 165 - Performance : Remove Rest API link in head. 166 - Performance : Remove WP Mail SMTP ads widget. 156 167 157 168 = 1.0.3 = … … 169 180 = 1.0.1 = 170 181 171 Fix script loading error on WC home admin page 182 - Fix script loading error on WC home admin page 183 184 = 1.0.0.2 = 185 186 - First release of ZenPress, yaaaaayyy! 187 188 == Upgrade Notice == 189 190 = 1.0.0.1 = 191 192 - Small fixes for WordPress Directory Submission 172 193 173 194 = 1.0 = 174 195 175 First release of ZenPress, yaaaaayyy! 176 177 == Upgrade Notice == 178 179 = 1.0.* = 180 181 Small fixes for WordPress Directory Submission 182 183 = 1.0 = 184 185 Let's boost your WordPress website! 196 - Let's boost your WordPress website! 186 197 187 198 == Credits == -
zenpress/tags/1.0.8/zenpress.php
r3285781 r3313963 12 12 * Plugin Name: ZenPress - Unbloat, Performance & Security 13 13 * Description: The zeniest unbloat, performance and security lightweight plugin for WordPress and WooCommerce. Install, activate, and done! 14 * Version: 1.0. 614 * Version: 1.0.8 15 15 * Plugin URI: https://wordpress.org/plugins/zenpress/ 16 16 * Author: Quentin Le Duff … … 40 40 } 41 41 42 function zenpress_include_functions($zenpress_folder) { 43 $zenpress_path = plugin_dir_path(__FILE__) . rtrim($zenpress_folder, '/') . '/'; 44 45 if (!is_dir($zenpress_path)) { 46 return; 47 } 48 49 $zenpress_files = glob($zenpress_path . '*.php'); 50 51 if ($zenpress_files === false) { 52 return; 53 } 54 55 foreach ($zenpress_files as $file) { 56 if (file_exists($file)) { 57 $base_name = basename($file, '.php'); 58 59 $constant_name = 'ZENPRESS_' . strtoupper(str_replace(['-', '_'], '_', $base_name)); 60 61 if (!defined($constant_name) || constant($constant_name) !== false) { 62 include_once $file; 63 } 64 } 65 } 66 } 67 42 68 /***** 43 69 * PERFORMANCE (つ≧▽≦)つ 44 70 ****/ 45 if (!defined('ZENPRESS_DISABLE_ADJACENT_POSTS') || ZENPRESS_DISABLE_ADJACENT_POSTS !== false) { 46 include plugin_dir_path(__FILE__) . 'inc/performance/disable__adjacent-posts.php'; 47 } 48 49 if (!defined('ZENPRESS_DISABLE_DASHICONS') || ZENPRESS_DISABLE_DASHICONS !== false) { 50 include plugin_dir_path(__FILE__) . 'inc/performance/disable__dashicons.php'; 51 } 52 53 if (!defined('ZENPRESS_DISABLE_DNS_PREFETCH') || ZENPRESS_DISABLE_DNS_PREFETCH !== false) { 54 include plugin_dir_path(__FILE__) . 'inc/performance/disable__dns-prefetch.php'; 55 } 56 57 if (!defined('ZENPRESS_DISABLE_EMOJIS') || ZENPRESS_DISABLE_EMOJIS !== false) { 58 include plugin_dir_path(__FILE__) . 'inc/performance/disable__emoji-scripts.php'; 59 } 60 61 if (!defined('ZENPRESS_DISABLE_JQUERY_MIGRATE') || ZENPRESS_DISABLE_JQUERY_MIGRATE !== false) { 62 include plugin_dir_path(__FILE__) . 'inc/performance/disable__jquery-migrate.php'; 63 } 64 65 if (!defined('ZENPRESS_DISABLE_OEMBED') || ZENPRESS_DISABLE_OEMBED !== false) { 66 include plugin_dir_path(__FILE__) . 'inc/performance/disable__oembed.php'; 67 } 68 69 if (!defined('ZENPRESS_DISABLE_PDF_THUMBNAILS') || ZENPRESS_DISABLE_PDF_THUMBNAILS !== false) { 70 include plugin_dir_path(__FILE__) . 'inc/performance/disable__pdf-thumbnails.php'; 71 } 72 73 if (!defined('ZENPRESS_DISABLE_RSS') || ZENPRESS_DISABLE_RSS !== false) { 74 include plugin_dir_path(__FILE__) . 'inc/performance/disable__rss.php'; 75 } 76 77 if (!defined('ZENPRESS_DISABLE_SHORTLINK') || ZENPRESS_DISABLE_SHORTLINK !== false) { 78 include plugin_dir_path(__FILE__) . 'inc/performance/disable__shortlink.php'; 79 } 80 81 if (!defined('ZENPRESS_DISABLE_WLW_MANIFEST') || ZENPRESS_DISABLE_WLW_MANIFEST !== false) { 82 include plugin_dir_path(__FILE__) . 'inc/performance/disable__wlw-manifest.php'; 83 } 84 85 if (!defined('ZENPRESS_DISABLE_WC_CART_FRAGMENTS') || ZENPRESS_DISABLE_WC_CART_FRAGMENTS !== false) { 86 include plugin_dir_path(__FILE__) . 'inc/performance/disable__woocommerce-cart-fragments.php'; 87 } 88 89 if (!defined('ZENPRESS_DISABLE_WC_SCRIPTS_STYLES') || ZENPRESS_DISABLE_WC_SCRIPTS_STYLES !== false) { 90 include plugin_dir_path(__FILE__) . 'inc/performance/disable__woocommerce-scripts-styles.php'; 91 } 92 93 if (!defined('ZENPRESS_DISABLE_WC_STRIPE_SCRIPTS') || ZENPRESS_DISABLE_WC_STRIPE_SCRIPTS !== false) { 94 include plugin_dir_path(__FILE__) . 'inc/performance/disable__woocommerce-stripe-scripts.php'; 95 } 96 97 if (!defined('ZENPRESS_DISABLE_WC_WIDGETS') || ZENPRESS_DISABLE_WC_WIDGETS !== false) { 98 include plugin_dir_path(__FILE__) . 'inc/performance/disable__woocommerce-widgets.php'; 99 } 100 101 if (!defined('ZENPRESS_REMOVE_GUTENBERG_BLOCK_PATTERNS') || ZENPRESS_REMOVE_GUTENBERG_BLOCK_PATTERNS !== false) { 102 include plugin_dir_path(__FILE__) . 'inc/performance/remove__gutenberg-unwanted-block-patterns.php'; 103 } 104 105 if (!defined('ZENPRESS_REMOVE_REST_API_LINK') || ZENPRESS_REMOVE_REST_API_LINK !== false) { 106 include plugin_dir_path(__FILE__) . 'inc/performance/remove__rest-api-link.php'; 107 } 108 109 if (!defined('ZENPRESS_REMOVE_WC_PATTERNS') || ZENPRESS_REMOVE_WC_PATTERNS !== false) { 110 include plugin_dir_path(__FILE__) . 'inc/performance/remove__woocommerce-patterns.php'; 111 } 112 113 if (!defined('ZENPRESS_SEPARATE_GUTENBERG_CORE_BLOCK_STYLES') || ZENPRESS_SEPARATE_GUTENBERG_CORE_BLOCK_STYLES !== false) { 114 include plugin_dir_path(__FILE__) . 'inc/performance/separate__gutenberg-core-block-styles.php'; 115 } 71 zenpress_include_functions('inc/performance/'); 116 72 117 73 /***** 118 74 * SECURITY ┐(︶▽︶)┌ 119 75 ****/ 120 if (!defined('ZENPRESS_BLOCK_USER_ENUMERATION_PROTECTION') || ZENPRESS_BLOCK_USER_ENUMERATION_PROTECTION !== false) { 121 include plugin_dir_path(__FILE__) . 'inc/security/block__user-enumeration.php'; 122 } 123 124 if (!defined('ZENPRESS_DISABLE_AUTHOR_ARCHIVES') || ZENPRESS_DISABLE_AUTHOR_ARCHIVES !== false) { 125 include plugin_dir_path(__FILE__) . 'inc/security/disable__author-archives.php'; 126 } 127 128 if (!defined('ZENPRESS_DISABLE_PINGBACK_TRACKBACK') || ZENPRESS_DISABLE_PINGBACK_TRACKBACK !== false) { 129 include plugin_dir_path(__FILE__) . 'inc/security/disable__pingback-trackback.php'; 130 } 131 132 if (!defined('ZENPRESS_DISABLE_XMLRPC_RSDLINK') || ZENPRESS_DISABLE_XMLRPC_RSDLINK !== false) { 133 include plugin_dir_path(__FILE__) . 'inc/security/disable__xmlrpc-rsdlink.php'; 134 } 135 136 if (!defined('ZENPRESS_HIDE_WC_VERSION') || ZENPRESS_HIDE_WC_VERSION !== false) { 137 include plugin_dir_path(__FILE__) . 'inc/security/hide__woocommerce-version.php'; 138 } 139 140 if (!defined('ZENPRESS_HIDE_WP_VERSION') || ZENPRESS_HIDE_WP_VERSION !== false) { 141 include plugin_dir_path(__FILE__) . 'inc/security/hide__wordpress-version.php'; 142 } 143 144 if (!defined('ZENPRESS_LOGIN_PROTECTION') || ZENPRESS_LOGIN_PROTECTION !== false) { 145 include plugin_dir_path(__FILE__) . 'inc/security/protect__wp-login.php'; 146 } 76 zenpress_include_functions('inc/security/'); 147 77 148 78 /***** 149 79 * USER INTERFACE ヾ(☆▽☆) 150 80 ****/ 151 if (!defined('ZENPRESS_ADMIN_BAR_CLEANUP') || ZENPRESS_ADMIN_BAR_CLEANUP !== false) { 152 include plugin_dir_path(__FILE__) . 'inc/ui/clean__admin-bar.php'; 153 } 154 155 if (!defined('ZENPRESS_DASHBOARD_CLEANUP') || ZENPRESS_DASHBOARD_CLEANUP !== false) { 156 include plugin_dir_path(__FILE__) . 'inc/ui/clean__dashboard-items.php'; 157 } 81 zenpress_include_functions('inc/ui/'); 158 82 159 83 /***** -
zenpress/trunk/readme.txt
r3285781 r3313963 5 5 Requires at least: 6.0 6 6 Tested up to: 6.8 7 Stable tag: 1.0. 67 Stable tag: 1.0.8 8 8 Requires PHP: 7.4 9 9 License: GPLv2 or later … … 38 38 * Disable unnecessary Stripe scripts on WooCommerce pages 39 39 * Disable WooCommerce widgets 40 * Disable unwanted default block patterns in gutenberg editor40 * Remove unwanted default block patterns in gutenberg editor 41 41 * Remove REST API link from the site head 42 42 * Remove WooCommerce patterns … … 55 55 = User interface = 56 56 57 * Cleans up the WordPress Admin Bar58 * Removes redudant items from the WordPress Dashboard57 * Cleans up the WordPress admin Bar 58 * Cleans up the WordPress dashboard items 59 59 60 60 == Configuration options == … … 137 137 == Changelog == 138 138 139 = 1.0.8 = 140 141 - UI : Remove smash baloon ads meta box 142 - Global : Files naming and call for scalability 143 144 = 1.0.7 = 145 146 - ZenPress tested for WordPress 6.8.1 147 - UI : Remove site health meta box 148 - UI : Remove WooCommerce admin dashboard setup metabox 149 139 150 = 1.0.6 = 140 151 … … 150 161 151 162 - Fix ABSPATH on woocommerce patterns snippets. 152 - Disable RSS feeds except main one.153 - Remove RSS feeds links in head except main one.154 - Remove Rest API link in head.155 - Remove WP Mail SMTP ads widget.163 - Performance : Disable RSS feeds except main one. 164 - Performance : Remove RSS feeds links in head except main one. 165 - Performance : Remove Rest API link in head. 166 - Performance : Remove WP Mail SMTP ads widget. 156 167 157 168 = 1.0.3 = … … 169 180 = 1.0.1 = 170 181 171 Fix script loading error on WC home admin page 182 - Fix script loading error on WC home admin page 183 184 = 1.0.0.2 = 185 186 - First release of ZenPress, yaaaaayyy! 187 188 == Upgrade Notice == 189 190 = 1.0.0.1 = 191 192 - Small fixes for WordPress Directory Submission 172 193 173 194 = 1.0 = 174 195 175 First release of ZenPress, yaaaaayyy! 176 177 == Upgrade Notice == 178 179 = 1.0.* = 180 181 Small fixes for WordPress Directory Submission 182 183 = 1.0 = 184 185 Let's boost your WordPress website! 196 - Let's boost your WordPress website! 186 197 187 198 == Credits == -
zenpress/trunk/zenpress.php
r3285781 r3313963 12 12 * Plugin Name: ZenPress - Unbloat, Performance & Security 13 13 * Description: The zeniest unbloat, performance and security lightweight plugin for WordPress and WooCommerce. Install, activate, and done! 14 * Version: 1.0. 614 * Version: 1.0.8 15 15 * Plugin URI: https://wordpress.org/plugins/zenpress/ 16 16 * Author: Quentin Le Duff … … 40 40 } 41 41 42 function zenpress_include_functions($zenpress_folder) { 43 $zenpress_path = plugin_dir_path(__FILE__) . rtrim($zenpress_folder, '/') . '/'; 44 45 if (!is_dir($zenpress_path)) { 46 return; 47 } 48 49 $zenpress_files = glob($zenpress_path . '*.php'); 50 51 if ($zenpress_files === false) { 52 return; 53 } 54 55 foreach ($zenpress_files as $file) { 56 if (file_exists($file)) { 57 $base_name = basename($file, '.php'); 58 59 $constant_name = 'ZENPRESS_' . strtoupper(str_replace(['-', '_'], '_', $base_name)); 60 61 if (!defined($constant_name) || constant($constant_name) !== false) { 62 include_once $file; 63 } 64 } 65 } 66 } 67 42 68 /***** 43 69 * PERFORMANCE (つ≧▽≦)つ 44 70 ****/ 45 if (!defined('ZENPRESS_DISABLE_ADJACENT_POSTS') || ZENPRESS_DISABLE_ADJACENT_POSTS !== false) { 46 include plugin_dir_path(__FILE__) . 'inc/performance/disable__adjacent-posts.php'; 47 } 48 49 if (!defined('ZENPRESS_DISABLE_DASHICONS') || ZENPRESS_DISABLE_DASHICONS !== false) { 50 include plugin_dir_path(__FILE__) . 'inc/performance/disable__dashicons.php'; 51 } 52 53 if (!defined('ZENPRESS_DISABLE_DNS_PREFETCH') || ZENPRESS_DISABLE_DNS_PREFETCH !== false) { 54 include plugin_dir_path(__FILE__) . 'inc/performance/disable__dns-prefetch.php'; 55 } 56 57 if (!defined('ZENPRESS_DISABLE_EMOJIS') || ZENPRESS_DISABLE_EMOJIS !== false) { 58 include plugin_dir_path(__FILE__) . 'inc/performance/disable__emoji-scripts.php'; 59 } 60 61 if (!defined('ZENPRESS_DISABLE_JQUERY_MIGRATE') || ZENPRESS_DISABLE_JQUERY_MIGRATE !== false) { 62 include plugin_dir_path(__FILE__) . 'inc/performance/disable__jquery-migrate.php'; 63 } 64 65 if (!defined('ZENPRESS_DISABLE_OEMBED') || ZENPRESS_DISABLE_OEMBED !== false) { 66 include plugin_dir_path(__FILE__) . 'inc/performance/disable__oembed.php'; 67 } 68 69 if (!defined('ZENPRESS_DISABLE_PDF_THUMBNAILS') || ZENPRESS_DISABLE_PDF_THUMBNAILS !== false) { 70 include plugin_dir_path(__FILE__) . 'inc/performance/disable__pdf-thumbnails.php'; 71 } 72 73 if (!defined('ZENPRESS_DISABLE_RSS') || ZENPRESS_DISABLE_RSS !== false) { 74 include plugin_dir_path(__FILE__) . 'inc/performance/disable__rss.php'; 75 } 76 77 if (!defined('ZENPRESS_DISABLE_SHORTLINK') || ZENPRESS_DISABLE_SHORTLINK !== false) { 78 include plugin_dir_path(__FILE__) . 'inc/performance/disable__shortlink.php'; 79 } 80 81 if (!defined('ZENPRESS_DISABLE_WLW_MANIFEST') || ZENPRESS_DISABLE_WLW_MANIFEST !== false) { 82 include plugin_dir_path(__FILE__) . 'inc/performance/disable__wlw-manifest.php'; 83 } 84 85 if (!defined('ZENPRESS_DISABLE_WC_CART_FRAGMENTS') || ZENPRESS_DISABLE_WC_CART_FRAGMENTS !== false) { 86 include plugin_dir_path(__FILE__) . 'inc/performance/disable__woocommerce-cart-fragments.php'; 87 } 88 89 if (!defined('ZENPRESS_DISABLE_WC_SCRIPTS_STYLES') || ZENPRESS_DISABLE_WC_SCRIPTS_STYLES !== false) { 90 include plugin_dir_path(__FILE__) . 'inc/performance/disable__woocommerce-scripts-styles.php'; 91 } 92 93 if (!defined('ZENPRESS_DISABLE_WC_STRIPE_SCRIPTS') || ZENPRESS_DISABLE_WC_STRIPE_SCRIPTS !== false) { 94 include plugin_dir_path(__FILE__) . 'inc/performance/disable__woocommerce-stripe-scripts.php'; 95 } 96 97 if (!defined('ZENPRESS_DISABLE_WC_WIDGETS') || ZENPRESS_DISABLE_WC_WIDGETS !== false) { 98 include plugin_dir_path(__FILE__) . 'inc/performance/disable__woocommerce-widgets.php'; 99 } 100 101 if (!defined('ZENPRESS_REMOVE_GUTENBERG_BLOCK_PATTERNS') || ZENPRESS_REMOVE_GUTENBERG_BLOCK_PATTERNS !== false) { 102 include plugin_dir_path(__FILE__) . 'inc/performance/remove__gutenberg-unwanted-block-patterns.php'; 103 } 104 105 if (!defined('ZENPRESS_REMOVE_REST_API_LINK') || ZENPRESS_REMOVE_REST_API_LINK !== false) { 106 include plugin_dir_path(__FILE__) . 'inc/performance/remove__rest-api-link.php'; 107 } 108 109 if (!defined('ZENPRESS_REMOVE_WC_PATTERNS') || ZENPRESS_REMOVE_WC_PATTERNS !== false) { 110 include plugin_dir_path(__FILE__) . 'inc/performance/remove__woocommerce-patterns.php'; 111 } 112 113 if (!defined('ZENPRESS_SEPARATE_GUTENBERG_CORE_BLOCK_STYLES') || ZENPRESS_SEPARATE_GUTENBERG_CORE_BLOCK_STYLES !== false) { 114 include plugin_dir_path(__FILE__) . 'inc/performance/separate__gutenberg-core-block-styles.php'; 115 } 71 zenpress_include_functions('inc/performance/'); 116 72 117 73 /***** 118 74 * SECURITY ┐(︶▽︶)┌ 119 75 ****/ 120 if (!defined('ZENPRESS_BLOCK_USER_ENUMERATION_PROTECTION') || ZENPRESS_BLOCK_USER_ENUMERATION_PROTECTION !== false) { 121 include plugin_dir_path(__FILE__) . 'inc/security/block__user-enumeration.php'; 122 } 123 124 if (!defined('ZENPRESS_DISABLE_AUTHOR_ARCHIVES') || ZENPRESS_DISABLE_AUTHOR_ARCHIVES !== false) { 125 include plugin_dir_path(__FILE__) . 'inc/security/disable__author-archives.php'; 126 } 127 128 if (!defined('ZENPRESS_DISABLE_PINGBACK_TRACKBACK') || ZENPRESS_DISABLE_PINGBACK_TRACKBACK !== false) { 129 include plugin_dir_path(__FILE__) . 'inc/security/disable__pingback-trackback.php'; 130 } 131 132 if (!defined('ZENPRESS_DISABLE_XMLRPC_RSDLINK') || ZENPRESS_DISABLE_XMLRPC_RSDLINK !== false) { 133 include plugin_dir_path(__FILE__) . 'inc/security/disable__xmlrpc-rsdlink.php'; 134 } 135 136 if (!defined('ZENPRESS_HIDE_WC_VERSION') || ZENPRESS_HIDE_WC_VERSION !== false) { 137 include plugin_dir_path(__FILE__) . 'inc/security/hide__woocommerce-version.php'; 138 } 139 140 if (!defined('ZENPRESS_HIDE_WP_VERSION') || ZENPRESS_HIDE_WP_VERSION !== false) { 141 include plugin_dir_path(__FILE__) . 'inc/security/hide__wordpress-version.php'; 142 } 143 144 if (!defined('ZENPRESS_LOGIN_PROTECTION') || ZENPRESS_LOGIN_PROTECTION !== false) { 145 include plugin_dir_path(__FILE__) . 'inc/security/protect__wp-login.php'; 146 } 76 zenpress_include_functions('inc/security/'); 147 77 148 78 /***** 149 79 * USER INTERFACE ヾ(☆▽☆) 150 80 ****/ 151 if (!defined('ZENPRESS_ADMIN_BAR_CLEANUP') || ZENPRESS_ADMIN_BAR_CLEANUP !== false) { 152 include plugin_dir_path(__FILE__) . 'inc/ui/clean__admin-bar.php'; 153 } 154 155 if (!defined('ZENPRESS_DASHBOARD_CLEANUP') || ZENPRESS_DASHBOARD_CLEANUP !== false) { 156 include plugin_dir_path(__FILE__) . 'inc/ui/clean__dashboard-items.php'; 157 } 81 zenpress_include_functions('inc/ui/'); 158 82 159 83 /*****
Note: See TracChangeset
for help on using the changeset viewer.