Forums

Hot Linked Image Cacher
Better way for finding the WordPress Upload Directory (2 posts)

  1. confiancese
    Member
    Posted 1 year ago #

    Hi,

    I think this a better way for finding the WordPress Upload directory (in function hlic_upload_dir) :

    if (!$backward_compatible || !$old_hlic_upload_dir || !$is_dir($abs_upload_dir)) {
                    $uploads = wp_upload_dir();
                    $upload_dir = $uploads['basedir'] . $uploads['subdir'] .  '/HLIC';
            }

    The old method didn't work well on my installation with wordpress 3.0.4.

  2. gilu
    Member
    Posted 1 year ago #

    Nice! Thanks!!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic