Support » Plugin: WP Downgrade | Specific Core Version » not working on 5.0.2

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Reisetiger

    (@reisetiger)

    Do you get an error message during configuration?

    Where is your page hosted?

    Please note: The plugin will not work on WordPress.com or other managed environments. You need to have your own installation on your own webspace/server.

    it may not works for everyone after I changed the code as it only applies to English WordPress site

    you should change the following code to make it works(
    The directory that the file located should be:/public_html/wp-content/plugins/wp-downgrade/wp-downgrade.php

    change the following code(Line 118-151):
    global $wp_version;
    // If current version is target version then stop
    if ( version_compare( $wp_version, $dg_version ) == 0 ) {
    return;
    } //https://downloads.wordpress.org/release/de_DE/wordpress-4.5.zip
    $updates->updates[0]->download = “https://wordpress.org/wordpress-“.$dg_version.”.zip”;
    $updates->updates[0]->packages->full = “https://wordpress.org/wordpress-“.$dg_version.”.zip”;
    $updates->updates[0]->packages->no_content = ”;
    $updates->updates[0]->packages->new_bundled = ”;
    $updates->updates[0]->current = $dg_version;

    return $updates;
    }

    function wpdg_urlcheck($url) {
    if (($url == ”) || ($url == null)) { return false; }
    $response = wp_remote_head( $url, array( ‘timeout’ => 5 ) );
    $accepted_status_codes = array( 200, 301, 302 );
    if ( ! is_wp_error( $response ) && in_array( wp_remote_retrieve_response_code( $response ), $accepted_status_codes ) ) {
    return true;
    }
    return false;
    }

    function wpdg_get_url($version) {
    $sprache = get_locale().’/’;
    if ($sprache == ‘en_US/’){
    $sprache = ”;
    };
    $url = “https://wordpress.org/wordpress-“.$version.”.zip”;
    return $url;
    }

    ?>

    • This reply was modified 8 months, 1 week ago by  jasonc123456.
    Plugin Author Reisetiger

    (@reisetiger)

    Please try v 1.2.0. I fixed an error with some download URLs. I hope it solves your problem, Stormhill.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘not working on 5.0.2’ is closed to new replies.