Changeset 3334213
- Timestamp:
- 07/25/2025 01:50:20 PM (6 months ago)
- Location:
- download-monitor
- Files:
-
- 10 edited
- 1 copied
-
tags/5.0.30 (copied) (copied from download-monitor/trunk)
-
tags/5.0.30/changelog.txt (modified) (1 diff)
-
tags/5.0.30/download-monitor.php (modified) (2 diffs)
-
tags/5.0.30/includes/installer-functions.php (modified) (3 diffs)
-
tags/5.0.30/readme.txt (modified) (2 diffs)
-
tags/5.0.30/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/changelog.txt (modified) (1 diff)
-
trunk/download-monitor.php (modified) (2 diffs)
-
trunk/includes/installer-functions.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
download-monitor/tags/5.0.30/changelog.txt
r3332774 r3334213 1 = 5.0.30 - 25.07.2025 = 2 Fixed: Downloads without a default WPML language were not showing in the admin table. 1 3 2 4 = 5.0.29 - 23.07.2025 = -
download-monitor/tags/5.0.30/download-monitor.php
r3332774 r3334213 4 4 Plugin URI: https://www.download-monitor.com 5 5 Description: A full solution for managing and selling downloadable files, monitoring downloads and outputting download links and file information on your WordPress powered site. 6 Version: 5.0. 296 Version: 5.0.30 7 7 Author: WPChill 8 8 Author URI: https://wpchill.com … … 35 35 36 36 // Define DLM Version 37 define( 'DLM_VERSION', '5.0. 29' );37 define( 'DLM_VERSION', '5.0.30' ); 38 38 define( 'DLM_UPGRADER_VERSION', '4.6.0' ); 39 39 -
download-monitor/tags/5.0.30/includes/installer-functions.php
r3332245 r3334213 24 24 // check if. 25 25 if ( ! function_exists( 'is_plugin_active_for_network' ) ) { 26 require_once ( ABSPATH . '/wp-admin/includes/plugin.php' );26 require_once ABSPATH . '/wp-admin/includes/plugin.php'; 27 27 } 28 28 … … 52 52 $installer->install(); 53 53 } 54 55 // sets the default language of dlm_downloads post types 56 dlm_set_wpml_language_default(); 54 57 } 55 58 … … 202 205 } 203 206 } 207 208 function dlm_set_wpml_language_default() { 209 if ( ! defined( 'ICL_SITEPRESS_VERSION' ) || ! function_exists( 'wpml_get_default_language' ) || ! class_exists( 'WP_Query' ) ) { 210 return; 211 } 212 213 global $sitepress; 214 215 if ( ! method_exists( $sitepress, 'set_element_language_details' ) ) { 216 return; 217 } 218 219 $default_lang = apply_filters( 'wpml_default_language', null ); 220 if ( ! $default_lang ) { 221 return; 222 } 223 224 $args = array( 225 'post_type' => 'dlm_download', 226 'post_status' => 'any', 227 'posts_per_page' => -1, 228 'fields' => 'ids', 229 'meta_query' => array( 230 array( 231 'key' => '_icl_lang_duplicate', 232 'compare' => 'NOT EXISTS', 233 ), 234 ), 235 ); 236 237 $downloads = get_posts( $args ); 238 239 foreach ( $downloads as $post_id ) { 240 $has_language = apply_filters( 241 'wpml_element_language_code', 242 null, 243 array( 244 'element_id' => $post_id, 245 'element_type' => 'post_dlm_download', 246 ) 247 ); 248 249 if ( ! $has_language ) { 250 $sitepress->set_element_language_details( 251 $post_id, 252 'post_dlm_download', 253 null, 254 $default_lang, 255 null 256 ); 257 } 258 } 259 } -
download-monitor/tags/5.0.30/readme.txt
r3332774 r3334213 4 4 Requires at least: 5.5 5 5 Tested up to: 6.8 6 Stable tag: 5.0. 296 Stable tag: 5.0.30 7 7 License: GPLv3 8 8 Requires PHP: 7.6 … … 115 115 116 116 == Changelog == 117 = 5.0.30 - 25.07.2025 = 118 Fixed: Downloads without a default WPML language were not showing in the admin table. 119 117 120 = 5.0.29 - 23.07.2025 = 118 121 Fixed: Compatibility with Admin Columns plugin. -
download-monitor/tags/5.0.30/vendor/composer/installed.php
r3332774 r3334213 4 4 'pretty_version' => 'dev-master', 5 5 'version' => 'dev-master', 6 'reference' => ' 84d211b59ddd524622e77813678f264e9b32b931',6 'reference' => '96e33c8ecd5ffc6be98692ce847faa5a66f0d3f0', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 14 14 'pretty_version' => 'dev-master', 15 15 'version' => 'dev-master', 16 'reference' => ' 84d211b59ddd524622e77813678f264e9b32b931',16 'reference' => '96e33c8ecd5ffc6be98692ce847faa5a66f0d3f0', 17 17 'type' => 'library', 18 18 'install_path' => __DIR__ . '/../../', -
download-monitor/trunk/changelog.txt
r3332774 r3334213 1 = 5.0.30 - 25.07.2025 = 2 Fixed: Downloads without a default WPML language were not showing in the admin table. 1 3 2 4 = 5.0.29 - 23.07.2025 = -
download-monitor/trunk/download-monitor.php
r3332774 r3334213 4 4 Plugin URI: https://www.download-monitor.com 5 5 Description: A full solution for managing and selling downloadable files, monitoring downloads and outputting download links and file information on your WordPress powered site. 6 Version: 5.0. 296 Version: 5.0.30 7 7 Author: WPChill 8 8 Author URI: https://wpchill.com … … 35 35 36 36 // Define DLM Version 37 define( 'DLM_VERSION', '5.0. 29' );37 define( 'DLM_VERSION', '5.0.30' ); 38 38 define( 'DLM_UPGRADER_VERSION', '4.6.0' ); 39 39 -
download-monitor/trunk/includes/installer-functions.php
r3332245 r3334213 24 24 // check if. 25 25 if ( ! function_exists( 'is_plugin_active_for_network' ) ) { 26 require_once ( ABSPATH . '/wp-admin/includes/plugin.php' );26 require_once ABSPATH . '/wp-admin/includes/plugin.php'; 27 27 } 28 28 … … 52 52 $installer->install(); 53 53 } 54 55 // sets the default language of dlm_downloads post types 56 dlm_set_wpml_language_default(); 54 57 } 55 58 … … 202 205 } 203 206 } 207 208 function dlm_set_wpml_language_default() { 209 if ( ! defined( 'ICL_SITEPRESS_VERSION' ) || ! function_exists( 'wpml_get_default_language' ) || ! class_exists( 'WP_Query' ) ) { 210 return; 211 } 212 213 global $sitepress; 214 215 if ( ! method_exists( $sitepress, 'set_element_language_details' ) ) { 216 return; 217 } 218 219 $default_lang = apply_filters( 'wpml_default_language', null ); 220 if ( ! $default_lang ) { 221 return; 222 } 223 224 $args = array( 225 'post_type' => 'dlm_download', 226 'post_status' => 'any', 227 'posts_per_page' => -1, 228 'fields' => 'ids', 229 'meta_query' => array( 230 array( 231 'key' => '_icl_lang_duplicate', 232 'compare' => 'NOT EXISTS', 233 ), 234 ), 235 ); 236 237 $downloads = get_posts( $args ); 238 239 foreach ( $downloads as $post_id ) { 240 $has_language = apply_filters( 241 'wpml_element_language_code', 242 null, 243 array( 244 'element_id' => $post_id, 245 'element_type' => 'post_dlm_download', 246 ) 247 ); 248 249 if ( ! $has_language ) { 250 $sitepress->set_element_language_details( 251 $post_id, 252 'post_dlm_download', 253 null, 254 $default_lang, 255 null 256 ); 257 } 258 } 259 } -
download-monitor/trunk/readme.txt
r3332774 r3334213 4 4 Requires at least: 5.5 5 5 Tested up to: 6.8 6 Stable tag: 5.0. 296 Stable tag: 5.0.30 7 7 License: GPLv3 8 8 Requires PHP: 7.6 … … 115 115 116 116 == Changelog == 117 = 5.0.30 - 25.07.2025 = 118 Fixed: Downloads without a default WPML language were not showing in the admin table. 119 117 120 = 5.0.29 - 23.07.2025 = 118 121 Fixed: Compatibility with Admin Columns plugin. -
download-monitor/trunk/vendor/composer/installed.php
r3332774 r3334213 4 4 'pretty_version' => 'dev-master', 5 5 'version' => 'dev-master', 6 'reference' => ' 84d211b59ddd524622e77813678f264e9b32b931',6 'reference' => '96e33c8ecd5ffc6be98692ce847faa5a66f0d3f0', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 14 14 'pretty_version' => 'dev-master', 15 15 'version' => 'dev-master', 16 'reference' => ' 84d211b59ddd524622e77813678f264e9b32b931',16 'reference' => '96e33c8ecd5ffc6be98692ce847faa5a66f0d3f0', 17 17 'type' => 'library', 18 18 'install_path' => __DIR__ . '/../../',
Note: See TracChangeset
for help on using the changeset viewer.