Changeset 3186961
- Timestamp:
- 11/13/2024 05:14:57 AM (4 months ago)
- Location:
- wp-maximum-upload-file-size/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
wp-maximum-upload-file-size/trunk/inc/codepopular-promotion.php
r2970521 r3186961 21 21 */ 22 22 function codepopular_dashboard_widget_render() { 23 // Fetch the JSON data 24 $response = wp_remote_get('https://raw.githubusercontent.com/shamimbdpro/promotion/main/promotion.json', array('timeout' => 10)); 23 25 26 // Decode the JSON response 27 $data = json_decode(wp_remote_retrieve_body($response), true); 28 29 if (isset($data['active']) && $data['active'] === 'yes'){ 30 ?> 31 <div class="codepopular-pro-widget"> 32 <a href="<?php echo esc_url($data['link']);?>" target="_blank"> 33 <img src="<?php echo esc_url($data['square_banner'])?>" alt="CodePopular" style="width: 100%;"/> 34 </a> 35 </div> 36 <?php 37 } 24 38 // Enter the name of your blog here followed by /wp-json/wp/v2/posts and add filters like this one that limits the result to 2 posts. 25 $response = wp_remote_get( 'https://codepopular.com/wp-json/wp/v2/posts?per_page=4&categories=19' 39 $response = wp_remote_get( 'https://codepopular.com/wp-json/wp/v2/posts?per_page=4&categories=19', array( 'timeout' => 10 )); 26 40 27 41 // Exit if error. -
wp-maximum-upload-file-size/trunk/readme.txt
r3157933 r3186961 61 61 == Changelog == 62 62 63 64 1.1.3 65 ------------- 66 * WP Latest Version 6.7 Compatibility Checked. 63 67 64 68 1.1.2 -
wp-maximum-upload-file-size/trunk/wp-maximum-upload-file-size.php
r3157933 r3186961 6 6 * Author URI: https://codepopular.com 7 7 * Plugin URI: https://wordpress.org/plugins/wp-maximum-upload-file-size/ 8 * Version: 1.1. 28 * Version: 1.1.3 9 9 * License: GPL2 10 10 * Text Domain: wp-maximum-upload-file-size … … 19 19 define('WMUFS_PLUGIN_PATH', trailingslashit(plugin_dir_path(__FILE__))); 20 20 define('WMUFS_PLUGIN_URL', trailingslashit(plugins_url('/', __FILE__))); 21 define('WMUFS_PLUGIN_VERSION', '1.1. 2');21 define('WMUFS_PLUGIN_VERSION', '1.1.3'); 22 22 23 23 /**
Note: See TracChangeset
for help on using the changeset viewer.