Plugin Directory

Changeset 168593


Ignore:
Timestamp:
10/30/2009 01:36:27 AM (16 years ago)
Author:
toddiceton
Message:

Fixed tracking, unserialized prefs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wpaudio-mp3-player/trunk/wpaudio.php

    r168188 r168593  
    8989add_action('admin_menu', 'wpa_menu');
    9090# Add track
    91 if ($wpa_options['wpa_track_permalink']) add_action('publish_post', 'wpaPostNew');
     91if ($wpa_options['wpa_track_permalink']) add_action('save_post', 'wpaPostNew');
    9292
    9393## Built-in libraries
     
    360360function wpaPostNew($id) {
    361361    $post = get_post($id);
    362     if (strpos($post->post_content, '[wpaudio') != false) {
     362    if (strpos(strtolower($post->post_content), 'wpaudio') !== false) {
    363363        $permalink = rawurlencode(get_permalink($id));
    364364        if (function_exists('curl_init') && function_exists('curl_setopt') && function_exists('curl_exec') && function_exists('curl_close')) {
Note: See TracChangeset for help on using the changeset viewer.