Plugin Directory

Changeset 3415866


Ignore:
Timestamp:
12/09/2025 11:09:06 PM (5 weeks ago)
Author:
afragen
Message:

Update to version 1.4.1 from GitHub

Location:
core-rollback
Files:
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • core-rollback/tags/1.4.1/CHANGES.md

    r3397624 r3415866  
    11[ unreleased ]
     2
     3#### 1.4.1 / 2025-12-09
     4* add hardening to `get_core_versions()`
     5* account for `update_core` transient as `false`
    26
    37#### 1.4.0 / 2025-11-17
  • core-rollback/tags/1.4.1/composer.json

    r3180137 r3415866  
    11{
    2     "name": "afragen/core-rollback",
    3     "description": "Seamless rollback of WordPress Core to latest release or any outdated, secure release using the Core Update API and core update methods.",
    4     "type": "wordpress-plugin",
    5     "keywords": [
    6         "core",
    7         "rollback",
    8         "downgrade",
    9         "upgrade"
    10     ],
    11     "license": "MIT",
    12     "authors": [
    13         {
    14             "name": "Andy Fragen",
    15             "email": "andy@thefragens.com",
    16             "homepage": "https://thefragens.com",
    17             "role": "Developer"
    18         }
    19     ],
    20     "repositories": [
    21         {
    22             "type": "vcs",
    23             "url": "https://github.com/afragen/core-rollback"
    24         }
    25     ],
    26     "support": {
    27         "issues": "https://github.com/afragen/core-rollback/issues",
    28         "source": "https://github.com/afragen/core-rollback"
    29     },
    30     "prefer-stable": true,
    31     "require": {
    32         "php": ">=5.6"
    33     },
    34     "autoload": {
    35         "psr-4": {
    36             "Fragen\\Rollback\\": "src/"
    37         }
    38     },
    39     "require-dev": {
    40         "wp-coding-standards/wpcs": "^3.0.0"
    41       },
    42       "config": {
    43         "allow-plugins": {
    44           "dealerdirect/phpcodesniffer-composer-installer": true
    45         }
    46       },
    47         "scripts": {
    48         "make-pot": [
    49             "wp i18n make-pot . languages/core-rollback.pot"
    50         ],
    51         "wpcs": [
    52             "vendor/bin/phpcbf .; vendor/bin/phpcs ."
    53         ]
    54     }
     2    "name": "afragen/core-rollback",
     3    "description": "Seamless rollback of WordPress Core to latest release or any outdated, secure release using the Core Update API and core update methods.",
     4    "type": "wordpress-plugin",
     5    "keywords": [
     6        "core",
     7        "rollback",
     8        "downgrade",
     9        "upgrade"
     10    ],
     11    "license": "MIT",
     12    "authors": [
     13        {
     14            "name": "Andy Fragen",
     15            "email": "andy@thefragens.com",
     16            "homepage": "https://thefragens.com",
     17            "role": "Developer"
     18        }
     19    ],
     20    "repositories": [
     21        {
     22            "type": "vcs",
     23            "url": "https://github.com/afragen/core-rollback"
     24        }
     25    ],
     26    "support": {
     27        "issues": "https://github.com/afragen/core-rollback/issues",
     28        "source": "https://github.com/afragen/core-rollback"
     29    },
     30    "prefer-stable": true,
     31    "require": {
     32        "php": ">=5.6"
     33    },
     34    "autoload": {
     35        "psr-4": {
     36            "Fragen\\Rollback\\": "src/"
     37        }
     38    },
     39    "require-dev": {
     40        "wp-coding-standards/wpcs": "^3.0.0"
     41    },
     42    "config": {
     43        "allow-plugins": {
     44            "dealerdirect/phpcodesniffer-composer-installer": true
     45        }
     46    },
     47    "scripts": {
     48        "make-pot": [
     49            "wp i18n make-pot . languages/core-rollback.pot"
     50        ],
     51        "lint": "@php ./vendor/bin/phpcs .",
     52        "format": "@php ./vendor/bin/phpcbf ."
     53    }
    5554}
  • core-rollback/tags/1.4.1/core-rollback.php

    r3397624 r3415866  
    1313 * Plugin URI:        https://github.com/afragen/core-rollback
    1414 * Description:       Seamless rollback of WordPress Core to latest release or any outdated, secure release using the Core Update API and core update methods.
    15  * Version:           1.4.0
     15 * Version:           1.4.1
    1616 * Author:            Andy Fragen
    1717 * License:           MIT
  • core-rollback/tags/1.4.1/readme.txt

    r3397624 r3415866  
    88Requires at least: 4.1
    99Tested up to: 6.9
    10 Stable tag: 1.4.0
     10Stable tag: 1.4.1
    1111
    1212Seamless rollback of WordPress Core to latest release or any outdated, secure release using the Core Update API and core update methods. Only latest release and outdated, secure releases are offered.
     
    3535
    3636## Changelog
     37
     38#### 1.4.1 / 2025-12-09
     39* add hardening to `get_core_versions()`
     40* account for `update_core` transient as `false`
    3741
    3842#### 1.4.0 / 2025-11-17
  • core-rollback/tags/1.4.1/src/Core.php

    r3397624 r3415866  
    5454            $body   = wp_remote_retrieve_body( $response );
    5555            $body   = json_decode( $body );
    56             $offers = $body->offers;
     56            $offers = $body->offers ?? [];
    5757            foreach ( $offers as $offer ) {
    5858                if ( version_compare( $offer->version, '4.0', '>=' ) ) {
     
    6161                }
    6262            }
    63             set_site_transient( 'core_rollback', $versions, DAY_IN_SECONDS );
     63            if ( ! empty( $versions ) ) {
     64                set_site_transient( 'core_rollback', $versions, DAY_IN_SECONDS );
     65            }
    6466        }
    6567
     
    175177     */
    176178    public function add_rollback_offer( $transient ) {
     179        if ( ! $transient ) {
     180            $transient                  = new stdClass();
     181            $transient->last_checked    = time();
     182            $transient->version_checked = function_exists( 'wp_get_wp_version' ) ? wp_get_wp_version() : get_bloginfo( 'version' );
     183            $transient->updates         = [];
     184        }
    177185        $rollback = get_site_transient( '_core_rollback' );
    178186        $version  = $rollback['core_dropdown'] ?? '';
  • core-rollback/trunk/CHANGES.md

    r3397624 r3415866  
    11[ unreleased ]
     2
     3#### 1.4.1 / 2025-12-09
     4* add hardening to `get_core_versions()`
     5* account for `update_core` transient as `false`
    26
    37#### 1.4.0 / 2025-11-17
  • core-rollback/trunk/composer.json

    r3180137 r3415866  
    11{
    2     "name": "afragen/core-rollback",
    3     "description": "Seamless rollback of WordPress Core to latest release or any outdated, secure release using the Core Update API and core update methods.",
    4     "type": "wordpress-plugin",
    5     "keywords": [
    6         "core",
    7         "rollback",
    8         "downgrade",
    9         "upgrade"
    10     ],
    11     "license": "MIT",
    12     "authors": [
    13         {
    14             "name": "Andy Fragen",
    15             "email": "andy@thefragens.com",
    16             "homepage": "https://thefragens.com",
    17             "role": "Developer"
    18         }
    19     ],
    20     "repositories": [
    21         {
    22             "type": "vcs",
    23             "url": "https://github.com/afragen/core-rollback"
    24         }
    25     ],
    26     "support": {
    27         "issues": "https://github.com/afragen/core-rollback/issues",
    28         "source": "https://github.com/afragen/core-rollback"
    29     },
    30     "prefer-stable": true,
    31     "require": {
    32         "php": ">=5.6"
    33     },
    34     "autoload": {
    35         "psr-4": {
    36             "Fragen\\Rollback\\": "src/"
    37         }
    38     },
    39     "require-dev": {
    40         "wp-coding-standards/wpcs": "^3.0.0"
    41       },
    42       "config": {
    43         "allow-plugins": {
    44           "dealerdirect/phpcodesniffer-composer-installer": true
    45         }
    46       },
    47         "scripts": {
    48         "make-pot": [
    49             "wp i18n make-pot . languages/core-rollback.pot"
    50         ],
    51         "wpcs": [
    52             "vendor/bin/phpcbf .; vendor/bin/phpcs ."
    53         ]
    54     }
     2    "name": "afragen/core-rollback",
     3    "description": "Seamless rollback of WordPress Core to latest release or any outdated, secure release using the Core Update API and core update methods.",
     4    "type": "wordpress-plugin",
     5    "keywords": [
     6        "core",
     7        "rollback",
     8        "downgrade",
     9        "upgrade"
     10    ],
     11    "license": "MIT",
     12    "authors": [
     13        {
     14            "name": "Andy Fragen",
     15            "email": "andy@thefragens.com",
     16            "homepage": "https://thefragens.com",
     17            "role": "Developer"
     18        }
     19    ],
     20    "repositories": [
     21        {
     22            "type": "vcs",
     23            "url": "https://github.com/afragen/core-rollback"
     24        }
     25    ],
     26    "support": {
     27        "issues": "https://github.com/afragen/core-rollback/issues",
     28        "source": "https://github.com/afragen/core-rollback"
     29    },
     30    "prefer-stable": true,
     31    "require": {
     32        "php": ">=5.6"
     33    },
     34    "autoload": {
     35        "psr-4": {
     36            "Fragen\\Rollback\\": "src/"
     37        }
     38    },
     39    "require-dev": {
     40        "wp-coding-standards/wpcs": "^3.0.0"
     41    },
     42    "config": {
     43        "allow-plugins": {
     44            "dealerdirect/phpcodesniffer-composer-installer": true
     45        }
     46    },
     47    "scripts": {
     48        "make-pot": [
     49            "wp i18n make-pot . languages/core-rollback.pot"
     50        ],
     51        "lint": "@php ./vendor/bin/phpcs .",
     52        "format": "@php ./vendor/bin/phpcbf ."
     53    }
    5554}
  • core-rollback/trunk/core-rollback.php

    r3397624 r3415866  
    1313 * Plugin URI:        https://github.com/afragen/core-rollback
    1414 * Description:       Seamless rollback of WordPress Core to latest release or any outdated, secure release using the Core Update API and core update methods.
    15  * Version:           1.4.0
     15 * Version:           1.4.1
    1616 * Author:            Andy Fragen
    1717 * License:           MIT
  • core-rollback/trunk/readme.txt

    r3397624 r3415866  
    88Requires at least: 4.1
    99Tested up to: 6.9
    10 Stable tag: 1.4.0
     10Stable tag: 1.4.1
    1111
    1212Seamless rollback of WordPress Core to latest release or any outdated, secure release using the Core Update API and core update methods. Only latest release and outdated, secure releases are offered.
     
    3535
    3636## Changelog
     37
     38#### 1.4.1 / 2025-12-09
     39* add hardening to `get_core_versions()`
     40* account for `update_core` transient as `false`
    3741
    3842#### 1.4.0 / 2025-11-17
  • core-rollback/trunk/src/Core.php

    r3397624 r3415866  
    5454            $body   = wp_remote_retrieve_body( $response );
    5555            $body   = json_decode( $body );
    56             $offers = $body->offers;
     56            $offers = $body->offers ?? [];
    5757            foreach ( $offers as $offer ) {
    5858                if ( version_compare( $offer->version, '4.0', '>=' ) ) {
     
    6161                }
    6262            }
    63             set_site_transient( 'core_rollback', $versions, DAY_IN_SECONDS );
     63            if ( ! empty( $versions ) ) {
     64                set_site_transient( 'core_rollback', $versions, DAY_IN_SECONDS );
     65            }
    6466        }
    6567
     
    175177     */
    176178    public function add_rollback_offer( $transient ) {
     179        if ( ! $transient ) {
     180            $transient                  = new stdClass();
     181            $transient->last_checked    = time();
     182            $transient->version_checked = function_exists( 'wp_get_wp_version' ) ? wp_get_wp_version() : get_bloginfo( 'version' );
     183            $transient->updates         = [];
     184        }
    177185        $rollback = get_site_transient( '_core_rollback' );
    178186        $version  = $rollback['core_dropdown'] ?? '';
Note: See TracChangeset for help on using the changeset viewer.