Plugin Directory

Changeset 3846958


Ignore:
Timestamp:
12/06/2026 12:27:09 AM (less than one hour ago)
Author:
atmacaugur
Message:

Release 1.2.0: tested up to 7.2, feed via Worker with fallback

Location:
edebiyat-yarismalari-widget
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • edebiyat-yarismalari-widget/tags/1.2.0/edebiyat-yarismalari-widget.php

    r3740132 r3846958  
    33 * Plugin Name:       Edebiyat Yarışmaları Widget
    44 * Description:        edebiyatyarismalari.com'daki güncel edebiyat yarışması duyurularını [edyw_widget] shortcode'u ile sitenizde listeler.
    5  * Version:            1.1.0
     5 * Version:            1.2.0
    66 * Requires at least:  5.8
    77 * Requires PHP:       7.4
    … …  
    1717}
    1818
    19 define( 'EDYW_VERSION', '1.1.0' );
     19define( 'EDYW_VERSION', '1.2.0' );
    2020define( 'EDYW_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
    2121define( 'EDYW_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
    22 define( 'EDYW_FEED_URL', 'https://edebiyatyarismalari.com/yarismalar.json' );
     22define( 'EDYW_FEED_URL', 'https://edebiyat-feed.ugur-7fb.workers.dev/yarismalar.json' );
     23define( 'EDYW_FEED_FALLBACK_URL', 'https://edebiyatyarismalari.com/yarismalar.json' );
    2324define( 'EDYW_TRANSIENT_KEY', 'edyw_yarismalar' );
    2425define( 'EDYW_CACHE_TTL', 12 * HOUR_IN_SECONDS );
    … …  
    2930add_action( 'wp_enqueue_scripts', 'edyw_register_assets' );
    3031/**
    31  * Stil dosyasını kaydeder (henüz kuyruğa almaz — asıl enqueue shortcode render edildiğinde yapılır).
     32 * Stil dosyasını kaydeder (henüz kuyruğa almaz, asıl enqueue shortcode render edildiğinde yapılır).
    3233 */
    3334function edyw_register_assets() {
  • edebiyat-yarismalari-widget/tags/1.2.0/includes/class-edyw-data-source.php

    r3740132 r3846958  
    4343         */
    4444        private static function fetch_remote() {
    45                 $response = wp_remote_get(
    46                         EDYW_FEED_URL,
    47                         array(
    48                                 'timeout' => 5,
    49                         )
    50                 );
     45                $response = wp_remote_get( EDYW_FEED_URL, array( 'timeout' => 5 ) );
     46
     47                if ( is_wp_error( $response ) || 200 !== wp_remote_retrieve_response_code( $response ) ) {
     48                        // Besleme sunucusu yanıt vermezse doğrudan kaynak adrese düş.
     49                        $response = wp_remote_get( EDYW_FEED_FALLBACK_URL, array( 'timeout' => 5 ) );
     50                }
    5151
    5252                if ( is_wp_error( $response ) || 200 !== wp_remote_retrieve_response_code( $response ) ) {
  • edebiyat-yarismalari-widget/tags/1.2.0/readme.txt

    r3740132 r3846958  
    33Tags: literature, competitions, widget, writing, contest
    44Requires at least: 5.8
    5 Tested up to: 7.1
     5Tested up to: 7.2
    66Requires PHP: 7.4
    7 Stable tag: 1.1.0
     7Stable tag: 1.2.0
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    6565This plugin connects to edebiyatyarismalari.com, the site it is published by, to retrieve the list of current literary competition announcements shown by the `[edyw_widget]` shortcode.
    6666
    67 It sends a plain server-side HTTP GET request to `https://edebiyatyarismalari.com/yarismalar.json` (a static, publicly available JSON feed) whenever the 12-hour cache has expired. No visitor data (IP address, cookies, user agent, or any other personal or site data) is included in this request — it is a fixed URL with no parameters. The response (competition titles, URLs, deadlines and prize info) is cached locally as a WordPress transient for 12 hours.
     67It sends a plain server-side HTTP GET request to `https://edebiyat-feed.ugur-7fb.workers.dev/yarismalar.json` (a read-only copy of the public JSON feed, served by Cloudflare Workers) whenever the 12-hour cache has expired. If that address does not answer, the plugin requests `https://edebiyatyarismalari.com/yarismalar.json` directly. The URL has no parameters and no visitor data (IP address, cookies, or any other personal data of your visitors) is sent. As with every WordPress HTTP request, WordPress itself adds its standard User-Agent header (`WordPress/<version>; <your site address>`), so the service can see your site's address and WordPress version. We count the number of distinct sites that use the feed; this information is not shared with anyone. The response (competition titles, URLs, deadlines and prize info) is cached locally as a WordPress transient for 12 hours.
    6868
    6969This service is provided by edebiyatyarismalari.com: [Privacy Policy](https://edebiyatyarismalari.com/gizlilik/). The site does not publish a separate terms-of-use page; the JSON feed is offered as public data for reuse.
    7070
    7171== Changelog ==
     72
     73= 1.2.0 =
     74* Tested up to WordPress 7.2.
     75* The feed is now served from a Cloudflare Workers address, with the original address as automatic fallback. The external service section describes exactly what is sent.
    7276
    7377= 1.1.0 =
  • edebiyat-yarismalari-widget/trunk/edebiyat-yarismalari-widget.php

    r3740132 r3846958  
    33 * Plugin Name:       Edebiyat Yarışmaları Widget
    44 * Description:        edebiyatyarismalari.com'daki güncel edebiyat yarışması duyurularını [edyw_widget] shortcode'u ile sitenizde listeler.
    5  * Version:            1.1.0
     5 * Version:            1.2.0
    66 * Requires at least:  5.8
    77 * Requires PHP:       7.4
    … …  
    1717}
    1818
    19 define( 'EDYW_VERSION', '1.1.0' );
     19define( 'EDYW_VERSION', '1.2.0' );
    2020define( 'EDYW_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
    2121define( 'EDYW_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
    22 define( 'EDYW_FEED_URL', 'https://edebiyatyarismalari.com/yarismalar.json' );
     22define( 'EDYW_FEED_URL', 'https://edebiyat-feed.ugur-7fb.workers.dev/yarismalar.json' );
     23define( 'EDYW_FEED_FALLBACK_URL', 'https://edebiyatyarismalari.com/yarismalar.json' );
    2324define( 'EDYW_TRANSIENT_KEY', 'edyw_yarismalar' );
    2425define( 'EDYW_CACHE_TTL', 12 * HOUR_IN_SECONDS );
    … …  
    2930add_action( 'wp_enqueue_scripts', 'edyw_register_assets' );
    3031/**
    31  * Stil dosyasını kaydeder (henüz kuyruğa almaz — asıl enqueue shortcode render edildiğinde yapılır).
     32 * Stil dosyasını kaydeder (henüz kuyruğa almaz, asıl enqueue shortcode render edildiğinde yapılır).
    3233 */
    3334function edyw_register_assets() {
  • edebiyat-yarismalari-widget/trunk/includes/class-edyw-data-source.php

    r3740132 r3846958  
    4343         */
    4444        private static function fetch_remote() {
    45                 $response = wp_remote_get(
    46                         EDYW_FEED_URL,
    47                         array(
    48                                 'timeout' => 5,
    49                         )
    50                 );
     45                $response = wp_remote_get( EDYW_FEED_URL, array( 'timeout' => 5 ) );
     46
     47                if ( is_wp_error( $response ) || 200 !== wp_remote_retrieve_response_code( $response ) ) {
     48                        // Besleme sunucusu yanıt vermezse doğrudan kaynak adrese düş.
     49                        $response = wp_remote_get( EDYW_FEED_FALLBACK_URL, array( 'timeout' => 5 ) );
     50                }
    5151
    5252                if ( is_wp_error( $response ) || 200 !== wp_remote_retrieve_response_code( $response ) ) {
  • edebiyat-yarismalari-widget/trunk/readme.txt

    r3740132 r3846958  
    33Tags: literature, competitions, widget, writing, contest
    44Requires at least: 5.8
    5 Tested up to: 7.1
     5Tested up to: 7.2
    66Requires PHP: 7.4
    7 Stable tag: 1.1.0
     7Stable tag: 1.2.0
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    6565This plugin connects to edebiyatyarismalari.com, the site it is published by, to retrieve the list of current literary competition announcements shown by the `[edyw_widget]` shortcode.
    6666
    67 It sends a plain server-side HTTP GET request to `https://edebiyatyarismalari.com/yarismalar.json` (a static, publicly available JSON feed) whenever the 12-hour cache has expired. No visitor data (IP address, cookies, user agent, or any other personal or site data) is included in this request — it is a fixed URL with no parameters. The response (competition titles, URLs, deadlines and prize info) is cached locally as a WordPress transient for 12 hours.
     67It sends a plain server-side HTTP GET request to `https://edebiyat-feed.ugur-7fb.workers.dev/yarismalar.json` (a read-only copy of the public JSON feed, served by Cloudflare Workers) whenever the 12-hour cache has expired. If that address does not answer, the plugin requests `https://edebiyatyarismalari.com/yarismalar.json` directly. The URL has no parameters and no visitor data (IP address, cookies, or any other personal data of your visitors) is sent. As with every WordPress HTTP request, WordPress itself adds its standard User-Agent header (`WordPress/<version>; <your site address>`), so the service can see your site's address and WordPress version. We count the number of distinct sites that use the feed; this information is not shared with anyone. The response (competition titles, URLs, deadlines and prize info) is cached locally as a WordPress transient for 12 hours.
    6868
    6969This service is provided by edebiyatyarismalari.com: [Privacy Policy](https://edebiyatyarismalari.com/gizlilik/). The site does not publish a separate terms-of-use page; the JSON feed is offered as public data for reuse.
    7070
    7171== Changelog ==
     72
     73= 1.2.0 =
     74* Tested up to WordPress 7.2.
     75* The feed is now served from a Cloudflare Workers address, with the original address as automatic fallback. The external service section describes exactly what is sent.
    7276
    7377= 1.1.0 =
Note: See TracChangeset for help on using the changeset viewer.