Plugin Directory

Changeset 1359651


Ignore:
Timestamp:
02/27/2016 02:39:20 PM (9 years ago)
Author:
andrewsauder
Message:

1.0.14

  • completed testing against Wordpress version 4.4.2
  • fixed duplicate titles on Jupiter theme
  • fixed title tag on Local Geo Search pages being overwritten by title of blog post with database id=1
Location:
local-geo-search/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • local-geo-search/trunk/classes/class.virtualpage.php

    r1339644 r1359651  
    124124        }
    125125
     126        function filter_pagetitle($title) {
     127            error_log('change title');
     128            error_log($this->title);
     129            //check if its a blog post
     130            if (!is_single()) {
     131                return $this->title;
     132            }
     133
     134            //if you get here then its a blog post so change the title
     135            global $wp_query;
     136            if (isset($wp_query->post->post_title)){
     137                return $wp_query->post->post_title;
     138            }
     139
     140            //if wordpress can't find the title return the default
     141            return $this->title;
     142        }
     143
    126144        // Setup a dummy post/page
    127145        // From the WP view, a post == a page
     
    143161            //create a fake post intance
    144162            $p = new stdClass;
     163
     164            //force change of title - fixes issue on sites with Jupiter theme that have a post or page with id=1
     165            add_filter('wp_title', array(&$this,'filter_pagetitle'));
    145166
    146167            // fill $p with everything a page in the database would have
  • local-geo-search/trunk/geoseo.php

    r1339649 r1359651  
    44* Plugin URI: https://www.localgeosearch.com
    55* Description: Local GEO Search creates hundreds of location specific pages on your site to target your services in your market.
    6 * Version: 1.0.13
     6* Version: 1.0.14
    77* Author: Elite Impressions, LLC
    88* Author URI: http://www.localgeosearch.com
     
    2121        'testing'=>false
    2222    );
    23 }
    24 
    25 if($_SERVER['SERVER_NAME']=='it-as') {
    26     $_SESSION['geoseoPlugin']['testing'] = true;
    2723}
    2824
  • local-geo-search/trunk/readme.txt

    r1339648 r1359651  
    44Tags: seo, marketing, geolocation
    55Requires at least: 3.0.1
    6 Tested up to: 4.4.1
     6Tested up to: 4.4.2
    77Stable tag: trunk
    88License: GPLv2 or later
     
    5050
    5151== Changelog ==
     52= 1.0.14 =
     53* completed testing against Wordpress version 4.4.2
     54* fixed duplicate titles on Jupiter theme
     55* fixed title tag on Local Geo Search pages being overwritten by title of blog post with database id=1
     56
    5257= 1.0.13 =
    5358* completed testing against Wordpress version 4.4.1
Note: See TracChangeset for help on using the changeset viewer.