Version Description
Download this release
Release Info
Developer | freediver |
Plugin | SEO Smart Links |
Version | 1.6.2 |
Comparing to | |
See all releases |
Code changes from version 1.6.1 to 1.6.2
- readme.txt +3 -0
- seo-links.php +6 -4
readme.txt
CHANGED
@@ -21,6 +21,9 @@ Everything happens completely transparent, and you can edit the options from the
|
|
21 |
|
22 |
|
23 |
Change log
|
|
|
|
|
|
|
24 |
v1.6
|
25 |
- Added option to process only single posts and pages
|
26 |
|
21 |
|
22 |
|
23 |
Change log
|
24 |
+
v1.6.2
|
25 |
+
- Fixed small issue with database leading to compability issues with some WP isntallations
|
26 |
+
|
27 |
v1.6
|
28 |
- Added option to process only single posts and pages
|
29 |
|
seo-links.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
/*
|
4 |
Plugin Name: SEO Smart Links
|
5 |
-
Version: 1.6.
|
6 |
Plugin URI: http://www.prelovac.com/vladimir/wordpress-plugins/seo-smart-links
|
7 |
Author: Vladimir Prelovac
|
8 |
Author URI: http://www.prelovac.com
|
@@ -161,7 +161,8 @@ if ($options['lcats'])
|
|
161 |
{
|
162 |
if ( !$categories = wp_cache_get( 'seo-links-categories', 'seo-smart-links' ) ) {
|
163 |
|
164 |
-
$query="SELECT
|
|
|
165 |
$categories = $wpdb->get_results($query);
|
166 |
|
167 |
wp_cache_add( 'seo-links-categories', $categories, 'seo-smart-links',86400 );
|
@@ -194,8 +195,9 @@ if ($options['ltags'])
|
|
194 |
{
|
195 |
|
196 |
if ( !$tags = wp_cache_get( 'seo-links-tags', 'seo-smart-links' ) ) {
|
197 |
-
|
198 |
-
$query="SELECT
|
|
|
199 |
$tags = $wpdb->get_results($query);
|
200 |
|
201 |
wp_cache_add( 'seo-links-tags', $tags, 'seo-smart-links',86400 );
|
2 |
|
3 |
/*
|
4 |
Plugin Name: SEO Smart Links
|
5 |
+
Version: 1.6.2
|
6 |
Plugin URI: http://www.prelovac.com/vladimir/wordpress-plugins/seo-smart-links
|
7 |
Author: Vladimir Prelovac
|
8 |
Author URI: http://www.prelovac.com
|
161 |
{
|
162 |
if ( !$categories = wp_cache_get( 'seo-links-categories', 'seo-smart-links' ) ) {
|
163 |
|
164 |
+
$query="SELECT $wpdb->terms.name, $wpdb->terms.term_id FROM $wpdb->terms LEFT JOIN $wpdb->term_taxonomy ON $wpdb->terms.term_id = $wpdb->term_taxonomy.term_id WHERE $wpdb->term_taxonomy.taxonomy = 'category'";
|
165 |
+
//$query="SELECT wp_terms.name, wp_terms.term_id FROM wp_terms LEFT JOIN wp_term_taxonomy ON wp_terms.term_id = wp_term_taxonomy.term_id WHERE wp_term_taxonomy.taxonomy = 'category'";
|
166 |
$categories = $wpdb->get_results($query);
|
167 |
|
168 |
wp_cache_add( 'seo-links-categories', $categories, 'seo-smart-links',86400 );
|
195 |
{
|
196 |
|
197 |
if ( !$tags = wp_cache_get( 'seo-links-tags', 'seo-smart-links' ) ) {
|
198 |
+
|
199 |
+
$query="SELECT $wpdb->terms.name, $wpdb->terms.term_id FROM $wpdb->terms LEFT JOIN $wpdb->term_taxonomy ON $wpdb->terms.term_id = $wpdb->term_taxonomy.term_id WHERE $wpdb->term_taxonomy.taxonomy = 'post_tag'";
|
200 |
+
//$query="SELECT wp_terms.name, wp_terms.term_id FROM wp_terms LEFT JOIN wp_term_taxonomy ON wp_terms.term_id = wp_term_taxonomy.term_id WHERE wp_term_taxonomy.taxonomy = 'post_tag'";
|
201 |
$tags = $wpdb->get_results($query);
|
202 |
|
203 |
wp_cache_add( 'seo-links-tags', $tags, 'seo-smart-links',86400 );
|