WordPress.org

Plugin Directory

Changeset 561378


Ignore:
Timestamp:
06/20/12 22:29:56 (22 months ago)
Author:
ntm
Message:

8.8.10.14 beta 14

Location:
podpress/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • podpress/trunk/podpress.php

    r561252 r561378  
    11<?php 
    2 define('PODPRESS_VERSION', '8.8.10.14 beta 13'); 
     2define('PODPRESS_VERSION', '8.8.10.14 beta 14'); 
    33/* 
    44Info for WordPress: 
    55============================================================================== 
    66Plugin Name: podPress 
    7 Version: 8.8.10.14 beta 13 
     7Version: 8.8.10.14 beta 14 
    88Plugin URI: http://www.mightyseek.com/podpress/ 
    99Description: The podPress plugin gives you everything you need in one easy plugin to use WordPress for Podcasting. Set it up in <a href="admin.php?page=podpress/podpress_feed.php">'podPress'->Feed/iTunes Settings</a>. If this plugin works for you, send us a comment. 
  • podpress/trunk/podpress_admin_functions.php

    r561252 r561378  
    10921092        if(!$resolved) { 
    10931093            $systemFileName = $podPress->TryToFindAbsFileName($mediafile); 
    1094             if(FALSE !== $systemFileName) { 
    1095                 $uriFileName = $systemFileName; 
    1096             } else { 
    1097                 $uriFileName = $podPress->convertPodcastFileNameToValidWebPath($mediafile); 
     1094            if (FALSE === $systemFileName) { 
     1095                $systemFileName = $podPress->convertPodcastFileNameToValidWebPath($mediafile); 
    10981096            } 
    10991097        } else { 
     
    11021100         
    11031101        podPress_var_dump('podPress_getID3tags - before a possible download of the media file'); 
    1104         podPress_var_dump('podPress_getID3tags - ' . $systemFileName); 
     1102        podPress_var_dump('podPress_getID3tags - systemFileName' . $systemFileName); 
    11051103 
    11061104        $uriFileName = $systemFileName; 
    11071105         
    11081106        if(TRUE === is_readable($systemFileName)) { 
    1109             podPress_var_dump('podPress_getID3tags - local file exists: '.$uriFileName); 
     1107            podPress_var_dump('podPress_getID3tags - local file exists (uriFileName): '.$uriFileName); 
    11101108        } else { 
    11111109            $local_uploadURL = $podPress->uploadurl; 
  • podpress/trunk/podpress_backend.php

    r561252 r561378  
    4141            $i++; 
    4242        } 
    43          
     43        // if the first part includes a double point then it is maybe a drive letter and no folder name 
     44        if ( FALSE !== stripos($podpress_abspath_parts[0], ':') ) { 
     45            if (FALSE !== stripos( php_uname(), 'win' )) { 
     46                $podpress_abspath = ltrim($podpress_abspath, DIRECTORY_SEPARATOR); 
     47                $podpress_path_above_of_WP = ltrim($podpress_path_above_of_WP, DIRECTORY_SEPARATOR); 
     48            } 
     49        } 
    4450        define('WP_USE_THEMES', false); 
    4551         
     52        // require the wp-config.php and make all the WP functions, constants and variables available 
    4653        if ( TRUE === is_readable($podpress_abspath.'/wp-config.php') ) { 
    4754            require_once($podpress_abspath.'/wp-config.php'); 
     
    5158            die('Error: could not find wp-config.php.'); 
    5259        } 
     60 
    5361        require_once(ABSPATH.PLUGINDIR.'/podpress/podpress_admin_functions.php'); 
    5462 
  • podpress/trunk/podpress_class.php

    r561252 r561378  
    10691069 
    10701070        function insert_content($content = '', $is_the_excerpt = FALSE) { 
    1071             GLOBAL $post, $podPressTemplateData, $podPressTemplateUnauthorizedData, $wpdb; 
     1071            GLOBAL $post, $podPressTemplateData, $podPressTemplateUnauthorizedData, $wpdb, $wp_version; 
    10721072            if ( !empty($post->post_password) ) { // if there's a password 
    1073                 if ( stripslashes($_COOKIE['wp-postpass_'.COOKIEHASH]) != $post->post_password ) {  // and it doesn't match the cookie 
    1074                     return $content; 
     1073            //~ printphpnotices_var_dump('post has a password'); 
     1074            //~ printphpnotices_var_dump($_COOKIE['wp-postpass_'.COOKIEHASH]); 
     1075            //~ printphpnotices_var_dump($post->post_password); 
     1076                $cookiehash = stripslashes($_COOKIE['wp-postpass_'.COOKIEHASH]); 
     1077            //~ printphpnotices_var_dump(wp_check_password($post->post_password, $cookiehash)); 
     1078                if ( TRUE === version_compare($wp_version, '2.5', '>=') ) { 
     1079                    if ( $cookiehash != $post->post_password AND FALSE === wp_check_password($post->post_password, $cookiehash) ) { // and it doesn't match the cookie 
     1080                        return $content; 
     1081                    } 
     1082                } else { 
     1083                    if ( $cookiehash != $post->post_password ) {    // and it doesn't match the cookie 
     1084                        return $content; 
     1085                    } 
    10751086                } 
    10761087            } 
  • podpress/trunk/readme.txt

    r561252 r561378  
    6363* beta 12: If a request of a blog page is a request via HTTPS then podPress will load icons and default images with the related URL scheme (https:// instead of http://). 
    6464* beta 13: podPress uses an improved method to determine the location of the wp-config.php during some AJAX actions (e.g. related to file size and duration detection) 
    65 * beta 13: The detection of the duration and the ID3 tags of a media file will work more reliable for all media files which are stored in a sub folder of the blog 
     65* beta 14: The detection of the duration and the ID3 tags of a media file will work more reliable for all media files which are stored in a sub folder of the blog 
     66* beta 14: bug fix: podPress did not display the player and other elements in password protected posts (Thank you [Stariel](http://wordpress.org/support/profile/stariel) for [reporting the problem](http://wordpress.org/support/topic/plugin-podpress-podpress-no-longer-working).) 
    6667 
    6768= v8.8.10.13 = 
Note: See TracChangeset for help on using the changeset viewer.