• Resolved johnkssilva

    (@johnkssilva)


    We really liked the plugin, it’s helping us a lot, but I have a little problem, CSS and Javascript files are only added on post.php, post-new.php, page.php, page-new.php and upload.php.

    What would be the possibility to add, too, on the customize.php.

    I tried to modify it via functions.php, but it wasn’t possible.

    As we use the upload of images via the theme customize, the Crop of the images would need to work also within the theme customize.

    The original function is:
    protected function shouldCropThumbnailsBeActive() {
    global $pagenow;
    $result = ($pagenow == ‘post.php’
    || $pagenow == ‘post-new.php’
    || $pagenow == ‘page.php’
    || $pagenow == ‘page-new.php’
    || $pagenow == ‘upload.php’);
    $result = apply_filters(‘crop_thumbnails_activat_on_adminpages’,$result);
    return $result;
    }

    If possible, you could change it to:
    protected function shouldCropThumbnailsBeActive() {
    global $pagenow;
    $result = ($pagenow == ‘post.php’
    || $pagenow == ‘post-new.php’
    || $pagenow == ‘page.php’
    || $pagenow == ‘page-new.php’
    || $pagenow == ‘upload.php’
    || $pagenow == ‘customize.php’);
    $result = apply_filters(‘crop_thumbnails_activat_on_adminpages’,$result);
    return $result;
    }

    It’s inside the /plugins/crop-thumbnails/functions/backendpreparer.php.

    Thanks a lot for the plugin!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Crop-Thumbnails working in theme customize’ is closed to new replies.