Plugin Directory

Changeset 2864679


Ignore:
Timestamp:
02/13/2023 08:40:37 PM (3 years ago)
Author:
seomantis
Message:

tested up to latest wordpress update

Location:
seo-links-interlinking
Files:
46 added
2 edited

Legend:

Unmodified
Added
Removed
  • seo-links-interlinking/trunk/readme.txt

    r2861311 r2864679  
    44Tags: seo, internal links, interlinking, internal linking, backlinks, automatic internal links, auto interlinking
    55Requires at least: 4.7
    6 Tested up to: 5.8
    7 Stable tag: 1.7.1
     6Tested up to: 6.1.1
     7Stable tag: 1.7.2
    88Requires PHP: 7.1
    99License: GPLv2 or later
     
    2828
    2929== Upgrade Notice ==
     30
     31= 1.7.2 =
     32Fix redirect to login page after plugin enabling
    3033
    3134= 1.7.1 =
  • seo-links-interlinking/trunk/scdata.php

    r2861311 r2864679  
    66 * Author: WP SEO Plugins
    77 * Author URI: https://wpseoplugins.org/
    8  * Version: 1.7.1
     8 * Version: 1.7.2
    99 */
    1010header('Content-Type: text/html; charset=utf-8');
     
    3434define( 'SEOLI_SITE_URL', ( SEOLI_SERVER_PORT == 80 ? 'http://' : 'https://' ) . SEOLI_SERVER_NAME );
    3535define( 'SEOLI_SERVER_REQUEST_URI', $_SERVER['REQUEST_URI']);
    36 define( 'SEOLI_VERSION', '1.7.1' );
     36define( 'SEOLI_VERSION', '1.7.2' );
    3737
    3838#function for add metabox.
     
    911911 */
    912912function seoli_activate() {
    913     $url = esc_url( add_query_arg(
    914         'page',
    915         'wp-seo-plugins-login',
    916         get_admin_url() . 'admin.php'
    917     ) );
    918     wp_redirect( $url );
    919     exit;
     913    add_option('seoli_do_activation_redirect', true);
    920914}
    921915register_activation_hook( __FILE__, 'seoli_activate' );
     916
     917add_action('admin_init', 'seoli_redirect');
     918function seoli_redirect() {
     919    if (get_option('seoli_do_activation_redirect', false)) {
     920        delete_option('seoli_do_activation_redirect');
     921        $url = esc_url( add_query_arg(
     922            'page',
     923            'wp-seo-plugins-login',
     924            get_admin_url() . 'admin.php'
     925        ) );
     926        wp_redirect( $url );
     927    }
     928}
    922929
    923930/**
Note: See TracChangeset for help on using the changeset viewer.