Plugin Directory

Changeset 2861311


Ignore:
Timestamp:
02/07/2023 09:15:16 AM (3 years ago)
Author:
seomantis
Message:

bug fixes, security updates

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

Legend:

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

    r2819945 r2861311  
    22Contributors: seomantis
    33Donate link:
    4 Tags: seo, internal links, interlinking automation, automatic internal links, search console, google search console, google links, google suggestions, seo links
     4Tags: seo, internal links, interlinking, internal linking, backlinks, automatic internal links, auto interlinking
    55Requires at least: 4.7
    6 Tested up to: 6.1.1
    7 Stable tag: 1.7
     6Tested up to: 5.8
     7Stable tag: 1.7.1
    88Requires PHP: 7.1
    99License: GPLv2 or later
     
    2828
    2929== Upgrade Notice ==
     30
     31= 1.7.1 =
     32Adding settings link to plugins page
     33Redirect to login page after plugin enabling
    3034
    3135= 1.7.0 =
  • seo-links-interlinking/trunk/scdata.php

    r2819945 r2861311  
    66 * Author: WP SEO Plugins
    77 * Author URI: https://wpseoplugins.org/
    8  * Version: 1.7.0
     8 * Version: 1.7.1
    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.0' );
     36define( 'SEOLI_VERSION', '1.7.1' );
    3737
    3838#function for add metabox.
     
    908908
    909909/**
     910 * Activate the plugin.
     911 */
     912function 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;
     920}
     921register_activation_hook( __FILE__, 'seoli_activate' );
     922
     923/**
     924 * Adding settings link to plugins page
     925 */
     926add_filter( 'plugin_action_links_seo-links-interlinking/scdata.php', 'nc_settings_link' );
     927function nc_settings_link( $links ) {
     928    // Build and escape the URL.
     929    $url = esc_url( add_query_arg(
     930        'page',
     931        'wp-seo-plugins-login',
     932        get_admin_url() . 'admin.php'
     933    ) );
     934    // Create the link.
     935    $settings_link = "<a href='$url'>" . __( 'Settings' ) . '</a>';
     936    // Adds the link to the end of the array.
     937    array_push(
     938        $links,
     939        $settings_link
     940    );
     941    return $links;
     942}
     943
     944/**
    910945 * Starting a session
    911946 */
Note: See TracChangeset for help on using the changeset viewer.