Plugin Directory

Changeset 1288834


Ignore:
Timestamp:
11/18/2015 04:32:13 PM ( 9 years ago)
Author:
jackreichert
Message:

zero point five

Fixed ssl issues

Location:
assets-manager/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • assets-manager/trunk/readme.txt

    r1286696 r1288834  
    eighty-three eighty-three
    eighty-four eighty-four == Changelog ==
      eighty-five = 0.5 =
      eighty-six Fixed ssl issues
      eighty-seven
    eighty-five eighty-eight = 0.4 =
    eighty-six eighty-nine Fixed issue where filename was not filename chosen
  • assets-manager/trunk/wp-assets-manager.php

    r1272853 r1288834  
    four four     Plugin URI: http://www.jackreichert.com/2014/01/12/introducing-assets-manager-for-wordpress/
    five five     Description: Plugin creates an assets manager. Providing a self hosted file sharing platfrom.
    six       Version: 0. four
      six     Version: 0. five
    seven seven     Author: Jack Reichert
    eight eight     Author URI: http://www.jackreichert.com
     
    one hundred and fifteen one hundred and fifteen
    one hundred and sixteen one hundred and sixteen         $upload_dir = wp_upload_dir();
    one hundred and seventeen           $path       = $upload_dir['basedir'] . next( explode( $upload_dir['baseurl'], wp_get_attachment_url( $asset_id ) ) );
    one hundred and eighteen           $filename   = $wp_query->posts[0]->post_content;
      one hundred and seventeen         $baseurl = $upload_dir['baseurl'];
      one hundred and eighteen         $attach_url = wp_get_attachment_url( $asset_id );
      one hundred and nineteen         if ( is_ssl() ) {
      one hundred and twenty             $attach_url = str_replace( 'http://', 'https://', $attach_url );
      one hundred and twenty-one             $baseurl = str_replace( 'http://', 'https://', $baseurl );
      one hundred and twenty-two         }
      one hundred and twenty-three         $path       = $upload_dir['basedir'] . str_replace( $baseurl, '', $attach_url );
      one hundred and twenty-four         $filename   = $wp_query->posts[0]->post_name;
    one hundred and nineteen one hundred and twenty-five
    one hundred and twenty one hundred and twenty-six         $ext = end( explode( '.', $filename ) );
Note: See TracChangeset for help on using the changeset viewer.