Changeset 153356
- Timestamp:
- 09/09/2009 06:45:48 PM (16 years ago)
- Location:
- wp-media-player
- Files:
-
- 2 edited
-
tags/0.7.1/uploader.php (modified) (1 diff)
-
trunk/uploader.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-media-player/tags/0.7.1/uploader.php
r152171 r153356 32 32 $videourl = null; 33 33 $postid = $_GET['post_id']; 34 $upload_path = trim(get_option('upload_path'), '/');34 $upload_path = get_option( 'upload_path' ); 35 35 $errors = null; 36 36 37 37 // Workaround for PHP 4 38 if ( strpos($upload_path, ABSPATH) === 0 ) 39 $upload_path = substr($upload_path, strlen(ABSPATH)); 38 if ( strpos( $upload_path, ABSPATH ) === 0 ) { 39 $upload_path = substr( $upload_path, strlen( ABSPATH ) ); 40 } 41 $upload_path = trim( $upload_path, '/' ); 40 42 41 43 $default_parameters = array( 'autoLoad' => get_option('wp_media_player_autoLoad'), -
wp-media-player/trunk/uploader.php
r152171 r153356 32 32 $videourl = null; 33 33 $postid = $_GET['post_id']; 34 $upload_path = trim( get_option( 'upload_path' ), '/' );34 $upload_path = get_option( 'upload_path' ); 35 35 $errors = null; 36 36 37 37 // Workaround for PHP 4 38 if ( strpos( $upload_path, ABSPATH ) === 0 ) 38 if ( strpos( $upload_path, ABSPATH ) === 0 ) { 39 39 $upload_path = substr( $upload_path, strlen( ABSPATH ) ); 40 } 41 $upload_path = trim( $upload_path, '/' ); 40 42 41 43 $default_parameters = array( 'autoLoad' => get_option( 'wp_media_player_autoLoad' ),
Note: See TracChangeset
for help on using the changeset viewer.