Troy Thompson

Web Developer

Archive for the ‘wordpress’ Tag

  1. WordPress Minor update, and why I love SVN

    Published
    Tagged
    Content

    So a minor WordPress released an update 3 days ago. If you don't update, one could use xmlrpc.php to edit posts on your blog, too bad a majority of WordPress users do not know it or can't be troubled to upgrade.

    Honestly, if I were on 2.3.2 and didn't have SVN I probably would not upgrade either.

    However, I was able to upgrade 3 sites in less than 10 minutes with SVN. :-)

    Note, I use the branch and not the trunk, there is a misconception that if you're using SVN WordPress you're using bleeding edge software that is unstable.
    Even the WordPress Subversion Access page shows an example of checking out from the trunk, which is a bad idea unless your developing a plugin for a later version of WordPress.

    The WordPress branch has been stable for me so far, but I only update when I hear an announcement or I'm feeling experimental.

    You can also use svn externals to automatically update plugins.

    Just navigate to wordpress plugins directory
    type “svn pe svn:externals .”
    e.g.
    akismet http://svn.wp-plugins.org/akismet/trunk/
    audit-trail http://svn.wp-plugins.org/audit-trail/trunk/
    etc.

    Save, then "svn up".

  2. WordPress DST Fix

    Published
    Tagged
    Content

    I noticed WordPress does not automatically compensate for daylight savings time.

    I fixed it by putting the following in my functions.php in my theme.

    <?php
    define('TZ','America/New_York');
    function get_gmt_offset()
    {
      putenv('TZ='.TZ);
      return intval(strftime('%z', time()))/100;
    }
    add_filter('option_gmt_offset','get_gmt_offset');
    ?>

    List of Supported timezones.

    (more...)

  3. LuckyLinks WordPress Plugin Released

    Published
    Last Updated
    Nov 13 2007
    Tagged
    Content

    Uses Google's "I'm Feeling Lucky" feature to hyperlink words in WordPress.

    It works by adding a button to the rich text editor in WordPress.
    The user can then highlight the text they wish to link, press the golden link button, and the rest is magic.

    Examples:

    Download