Plugin Directory

Changeset 1710865


Ignore:
Timestamp:
08/09/2017 10:22:57 AM (9 years ago)
Author:
wpsimpleseo
Message:

Adding version 1.0.4

Location:
wp-simple-seo/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • wp-simple-seo/trunk/_modules/licensing/lum.php

    r1639262 r1710865  
    9797            add_action( 'admin_enqueue_scripts', array( $this, 'register_admin_scripts_css' ) );
    9898
     99         
    99100            // Hook the Addons screen and Licensing functionality
    100101            add_action( 'wp_loaded', array( $this, 'save_license_key' ), 1 );
    101102            add_action( 'init', array( $this, 'manage_addons' ), 2 );
    102103            add_action( str_replace( '-', '_', $this->plugin->name ) . '_admin_menu', array( $this, 'admin_menu' ), 98 );
    103 
    104             // Reviews
    105             add_action( 'wp_ajax_' . str_replace( '-', '_', $this->plugin->name ) . '_dismiss_review', array( $this, 'dismiss_review' ) );
    106             add_action( 'admin_notices', array( $this, 'display_review_request' ) );
    107104
    108105            // Check for Addon Updates
     
    115112            add_action( 'activated_plugin',                         array( $this, 'clear_transients' ) );
    116113            add_action( 'deactivated_plugin',                       array( $this, 'clear_transients' ) );
     114         
     115            // Reviews
     116            add_action( 'wp_ajax_' . str_replace( '-', '_', $this->plugin->name ) . '_dismiss_review', array( $this, 'dismiss_review' ) );
     117            add_action( 'admin_notices', array( $this, 'display_review_request' ) );
    117118        }
    118119       
     
    409410    public function is_license_key_defined_as_constant() {
    410411
    411         return defined( strtoupper( $this->plugin->name ) . '_LICENSE_KEY' ) && ! empty( constant( strtoupper( $this->plugin->name ) . '_LICENSE_KEY' ) );
     412        // If the license key is defined in wp-config, use that
     413        if ( defined( strtoupper( $this->plugin->name ) . '_LICENSE_KEY' ) ) {
     414            return true;
     415        }
     416
     417        return false;
    412418
    413419    }
  • wp-simple-seo/trunk/includes/global/settings.php

    r1573510 r1710865  
    834834
    835835        // Special check for Posts
    836         if ( $post_type->name == 'post' && get_option( 'show_on_front' ) == 'page' && ! empty( get_option( 'page_for_posts' ) ) ) {
     836        $page_for_posts = get_option( 'page_for_posts' );
     837        if ( $post_type->name == 'post' && get_option( 'show_on_front' ) == 'page' && ! empty( get_option( $page_for_posts ) ) ) {
    837838            return true;
    838839        }
  • wp-simple-seo/trunk/readme.txt

    r1639262 r1710865  
    44Tags: bing, canonical, google, google search console, google sitemap, google webmaster tools, meta, meta description, robots, search engine optimization, seo, sitemap, sitemaps, social, xml sitemap
    55Requires at least: 4.5
    6 Tested up to: 4.7.3
     6Tested up to: 4.8.1
    77Stable tag: trunk
    88License: GPLv2 or later
     
    158158== Changelog ==
    159159
     160= 1.0.4 =
     161* Fix: Fatal error: Can't use function return value in write context in _modules/licensing/lum.php on line 411
     162* Fix: Fatal error: Can't use function return value in write context in includes/global/settings.php on line 836
     163
    160164= 1.0.3 =
    161165* Fix: Only display Review Helper for Super Admin and Admin
     
    163167* Fix: Stripslashes from meta and title output
    164168* Fix: Undefined function get_author_ids() in sitemaps.php
     169* Fix: Import Sources
    165170
    166171= 1.0.2 =
  • wp-simple-seo/trunk/wp-simple-seo.php

    r1639262 r1710865  
    33* Plugin Name: WP Simple SEO
    44* Plugin URI: https://wpsimpleseo.com
    5 * Version: 1.0.3
     5* Version: 1.0.4
    66* Author: WP Simple SEO
    77* Author URI: https://wpsimpleseo.com
     
    5959        $this->plugin->folder       = plugin_dir_path( __FILE__ );
    6060        $this->plugin->url          = plugin_dir_url( __FILE__ );
    61         $this->plugin->version      = '1.0.3';
     61        $this->plugin->version      = '1.0.4';
    6262        $this->plugin->home_url     = 'https://wpsimpleseo.com';
    6363        $this->plugin->support_url  = 'https://wpsimpleseo.com/documentation/support';
Note: See TracChangeset for help on using the changeset viewer.