Changeset 1359651
- Timestamp:
- 02/27/2016 02:39:20 PM (9 years ago)
- Location:
- local-geo-search/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
local-geo-search/trunk/classes/class.virtualpage.php
r1339644 r1359651 124 124 } 125 125 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 126 144 // Setup a dummy post/page 127 145 // From the WP view, a post == a page … … 143 161 //create a fake post intance 144 162 $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')); 145 166 146 167 // fill $p with everything a page in the database would have -
local-geo-search/trunk/geoseo.php
r1339649 r1359651 4 4 * Plugin URI: https://www.localgeosearch.com 5 5 * Description: Local GEO Search creates hundreds of location specific pages on your site to target your services in your market. 6 * Version: 1.0.1 36 * Version: 1.0.14 7 7 * Author: Elite Impressions, LLC 8 8 * Author URI: http://www.localgeosearch.com … … 21 21 'testing'=>false 22 22 ); 23 }24 25 if($_SERVER['SERVER_NAME']=='it-as') {26 $_SESSION['geoseoPlugin']['testing'] = true;27 23 } 28 24 -
local-geo-search/trunk/readme.txt
r1339648 r1359651 4 4 Tags: seo, marketing, geolocation 5 5 Requires at least: 3.0.1 6 Tested up to: 4.4. 16 Tested up to: 4.4.2 7 7 Stable tag: trunk 8 8 License: GPLv2 or later … … 50 50 51 51 == 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 52 57 = 1.0.13 = 53 58 * completed testing against Wordpress version 4.4.1
Note: See TracChangeset
for help on using the changeset viewer.