Plugin Directory

Changeset 3186961


Ignore:
Timestamp:
11/13/2024 05:14:57 AM (4 months ago)
Author:
codepopular
Message:

Version Released 1.2.3

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  
    2121     */
    2222    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));
    2325
     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        }
    2438        // 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 ));
    2640
    2741        // Exit if error.
  • wp-maximum-upload-file-size/trunk/readme.txt

    r3157933 r3186961  
    6161== Changelog ==
    6262
     63
     641.1.3
     65-------------
     66* WP Latest Version 6.7 Compatibility Checked.
    6367
    64681.1.2
  • wp-maximum-upload-file-size/trunk/wp-maximum-upload-file-size.php

    r3157933 r3186961  
    66* Author URI: https://codepopular.com
    77* Plugin URI: https://wordpress.org/plugins/wp-maximum-upload-file-size/
    8 * Version: 1.1.2
     8* Version: 1.1.3
    99* License: GPL2
    1010* Text Domain: wp-maximum-upload-file-size
     
    1919define('WMUFS_PLUGIN_PATH', trailingslashit(plugin_dir_path(__FILE__)));
    2020define('WMUFS_PLUGIN_URL', trailingslashit(plugins_url('/', __FILE__)));
    21 define('WMUFS_PLUGIN_VERSION', '1.1.2');
     21define('WMUFS_PLUGIN_VERSION', '1.1.3');
    2222
    2323/**
Note: See TracChangeset for help on using the changeset viewer.