Plugin Directory

Changeset 3082292


Ignore:
Timestamp:
05/07/2024 07:33:06 AM (22 months ago)
Author:
weather25
Message:

update

Location:
free-weather
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • free-weather/trunk/README.txt

    r3082269 r3082292  
    44Tags: weather,weather forecast,weather widget,free weather,weather plugin
    55Requires at least: 4.0.1
    6 Tested up to: 6.4.4
     6Tested up to: 6.5.2
    77PHP Version: 5.5 or higher
    88Stable tag: 1.0.0
  • free-weather/trunk/free-weather.php

    r3082269 r3082292  
    145145    {
    146146        // print_r($instance);
    147         $city = !empty($instance['city']) ? $instance['city'] : 'New York City';
    148         $country = !empty($instance['country']) ? $instance['country'] : 'United Stated';
     147        $city = !empty($instance['city']) ? $instance['city'] : 'London';
     148        $country = !empty($instance['country']) ? $instance['country'] : 'United Kingdom';
    149149        $backgroundColor = !empty($instance['backgroundColor']) ? $instance['backgroundColor'] : '#becffb';
    150150        $textColor = !empty($instance['textColor']) ? $instance['textColor'] : '#000000';
     
    385385    // Define default values
    386386    $defaults = [
    387         'city' => $global_settings['city'] ?? 'New York City',
     387        'city' => $global_settings['city'] ?? 'New York',
    388388        'country' => $global_settings['country'] ?? 'United Stated',
    389389        'background_color' => $global_settings['backgroundColor'] ?? '#becffb',
     
    452452            support text/html. You can customize it using the following attributes:</p>
    453453        <ul>
    454             <li><code>city</code>: The city for which you want to display the weather (default: "New York City").</li>
     454            <li><code>city</code>: The city for which you want to display the weather (default: "New York").</li>
    455455            <li><code>country</code>: The country that the city is in (default: "United Stated").</li>
    456456            <li><code>days</code>: The number of days to show the weather forecast for (default: 3).</li>
     
    594594    // Default values for attributes
    595595    $defaults = [
    596         'city' => 'New York City',
     596        'city' => 'New York',
    597597        'country' => 'United Stated',
    598598        'backgroundColor' => '#becffb',
Note: See TracChangeset for help on using the changeset viewer.