Plugin Directory

Changeset 347518


Ignore:
Timestamp:
02/18/2011 10:32:22 PM (15 years ago)
Author:
rgeyer
Message:

Picking up wherever I left off

Location:
twitter-api-shortcodes/trunk
Files:
5 added
1 edited

Legend:

Unmodified
Added
Removed
  • twitter-api-shortcodes/trunk/twitter-api-shortcodes.php

    r322578 r347518  
    1111require_once(ABSPATH . 'wp-content/plugins/twitter-api-shortcodes/twitter.api.wp.class.inc.php');
    1212require_once(ABSPATH . 'wp-content/plugins/twitter-api-shortcodes/libs/smarty/Smarty.class.php');
    13 
    14 define(TAS_VERSION, '0.0.1Alpha');
     13require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
     14require_once(ABSPATH . 'wp-content/plugins/twitter-api-shortcodes/functions.php');
     15
     16define(TAS_VERSION, '0.0.3Alpha');
    1517define(TAS_DB_VERSION, '0.0.3');
    1618define(TAS_ADMIN_OPTIONS_ID, '83a70cd3-3f32-456d-980d-309169c26ccf');
     
    3537
    3638// TODO: Need to add a schedule to update author avatar URL's on cached statuses.  Also need to add deactivation.
    37 
    3839function tas_install() {
    3940  global $wpdb;
     
    4445  $tasSearchName = $wpdb->prefix . 'tas_search';
    4546
    46   require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
    4747  update_option('tas_last_installed', date('c'));
    4848
     
    523523}
    524524
    525 function jsonGenderBender($jsonStrOrObj, $output = 'json') {
    526   $inputIs = is_string($jsonStrOrObj) ? 'string' : 'json';
    527   if ($inputIs == strtolower($output)) {
    528     return $jsonStrOrObj;
    529   }
    530 
    531   // Since we're returning, the break statements are redundant, but whatever.  :-)
    532   switch (strtolower($output)) {
    533     case 'json' :
    534       return json_decode($jsonStrOrObj);
    535       break;
    536     case 'string' :
    537       return json_encode($jsonStrOrObj);
    538       break;
    539   }
    540 }
    541 
    542525function have_twitter_oauth_token() {
    543526  $tas_oauth_gw_key = get_option('tas_oauth_gw_key', false);
Note: See TracChangeset for help on using the changeset viewer.