Changeset 168593
- Timestamp:
- 10/30/2009 01:36:27 AM (16 years ago)
- File:
-
- 1 edited
-
wpaudio-mp3-player/trunk/wpaudio.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wpaudio-mp3-player/trunk/wpaudio.php
r168188 r168593 89 89 add_action('admin_menu', 'wpa_menu'); 90 90 # Add track 91 if ($wpa_options['wpa_track_permalink']) add_action(' publish_post', 'wpaPostNew');91 if ($wpa_options['wpa_track_permalink']) add_action('save_post', 'wpaPostNew'); 92 92 93 93 ## Built-in libraries … … 360 360 function wpaPostNew($id) { 361 361 $post = get_post($id); 362 if (strpos( $post->post_content, '[wpaudio') != false) {362 if (strpos(strtolower($post->post_content), 'wpaudio') !== false) { 363 363 $permalink = rawurlencode(get_permalink($id)); 364 364 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.