WordPress.org

Plugin Directory

Changeset 332139


Ignore:
Timestamp:
01/13/11 16:15:48 (3 years ago)
Author:
keithdsouza
Message:

made changes to use the new params used by AIOSEO

Location:
all-in-one-seo-pack-windows-live-writer-bridge/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • all-in-one-seo-pack-windows-live-writer-bridge/trunk/all-in-one-seo-wlw-bridge.php

    r107787 r332139  
    44Plugin URI: http://techie-buzz.com/wordpress-plugins/all-in-one-seo-wlw-bridge-plugin.html 
    55Description: All In One SEO Pack to Windows Live Writer Bridge allows bloggers using Windows Live Writer to control the SEO parameters from their desktop without having to visit the website to add All-in-one-seo parameters 
    6 Version: 1.0 
     6Version: 1.1 
    77Author: Keith Dsouza 
    88Author URI: http://techie-buzz.com/ 
     
    2222* add keywords, SEO title and description while blogging using WLW 
    2323* hooks into the xmlrpc_publish_post action  
     24* 
     25* 
     26* v1.0 - Initial Release 
     27* v1.1 - Changed the var names to match those used by AIOSEO 
     28* 
    2429*/ 
    2530 
     
    6267      //remove empty stuff from our consuming array 
    6368      $aioswb_store_array = array_filter($aioswb_store_array); 
     69       
     70      $keywords_text = "keywords"; 
     71      $description_text = "description"; 
     72      $title_text = "title"; 
     73       
     74      /* 
     75      * Later versions of AIOSEO plugin uses different store for keywords etc 
     76      */ 
     77      if(function_exists("aioseop_get_version")) { 
     78        $keywords_text = "_aioseop_keywords"; 
     79        $description_text = "_aioseop_description"; 
     80        $title_text = "_aioseop_title"; 
     81      } 
     82       
    6483      //we need to make sure its and array 
    6584      if(is_array($aioswb_store_array)) { 
     
    6988       
    7089            if (isset($keywords) && !empty($keywords)) { 
    71                 delete_post_meta($id, 'keywords'); 
    72           add_post_meta($id, 'keywords', $keywords); 
     90                delete_post_meta($id, $keywords_text); 
     91          add_post_meta($id, $keywords_text, $keywords); 
    7392            } 
    7493            if (isset($description) && !empty($description)) { 
    75                 delete_post_meta($id, 'description'); 
    76           add_post_meta($id, 'description', $description); 
     94                delete_post_meta($id, $_aioseop_description); 
     95          add_post_meta($id, $_aioseop_description, $description); 
    7796            } 
    7897            if (isset($title) && !empty($title)) { 
    79                 delete_post_meta($id, 'title'); 
    80           add_post_meta($id, 'title', $title); 
     98                delete_post_meta($id, $_aioseop_title); 
     99          add_post_meta($id, $_aioseop_title, $title); 
    81100            } 
    82101      } 
  • all-in-one-seo-pack-windows-live-writer-bridge/trunk/readme.txt

    r107787 r332139  
    44Tags: post,google,seo,meta,meta keywords,meta description,title,posts,plugin, search engine optimization 
    55Requires at least: 2.1 
    6 Tested up to: 2.7.1 
    7 Stable tag: 1.0 
     6Tested up to: 3.1 
     7Stable tag: 1.1 
    88 
    99Allows user to specify All in One SEO Pack details while posting from Windows Live Writer. 
     
    31314. For detailed information please visit, **[Detailed Plugin Information Page](http://techie-buzz.com/wordpress-plugins/all-in-one-seo-wlw-bridge-plugin.html)** 
    3232 
     33== Changelog == 
     34v1.0 - Initial Release 
     35 
     36v1.1 - Made changes to use the new param names used by AIOSEO 
     37 
    3338== Frequently Asked Questions == 
    3439 
Note: See TracChangeset for help on using the changeset viewer.