Forums

Simple Image Sizes
[resolved] Bug: home_url() should be admin_url() (4 posts)

  1. Brad Touesnard
    Member
    Posted 1 year ago #

    There's a bug at line 44 in class.admin.php that is preventing the image regeneration to work when the "WordPress address (URL)" setting is not the same as the "Site address (URL)" setting.

    Currently:
    'ajaxUrl' => home_url( '/wp-admin/admin-ajax.php' ),

    Should be:
    'ajaxUrl' => admin_url( '/admin-ajax.php' ),

    http://wordpress.org/extend/plugins/simple-image-sizes/

  2. Rahe
    Member
    Posted 1 year ago #

    Hi,

    Good point, it will be fixed in the next version of the plugin.

    Thank you !

  3. Rahe
    Member
    Posted 1 year ago #

    Hi,

    Fixed in 1.0.3 ! Thank you again !

  4. Brad Touesnard
    Member
    Posted 1 year ago #

    Awesome, thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic