Skip to content

Instantly share code, notes, and snippets.

@franz-josef-kaiser
Forked from kovshenin/image-shortcode.php
Created March 9, 2012 12:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save franz-josef-kaiser/2006299 to your computer and use it in GitHub Desktop.
Save franz-josef-kaiser/2006299 to your computer and use it in GitHub Desktop.
Image shortcode & template tag for WordPress - mu-plugin
// THIS GIST HAS MOVED TO A REPO: https://github.com/franz-josef-kaiser/Dynamic-Image-Resize
@thefuxia
Copy link

thefuxia commented Mar 9, 2012

$src       = esc_url( strtolower( $src ) );
…
$base_url   = strtolower( $upload_dir['baseurl'] );

That’s wrong. Names are case-sensitive in Linux/Unix. Basically, you search in /up/ when the upload directory is named /UP/.

@franz-josef-kaiser
Copy link
Author

@toscho Thanks. Will be fixed with the next update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment