WordPress.org

Forums

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

  1. Brad Touesnard
    Member
    Posted 4 years 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
    Plugin Author

    Posted 4 years ago #

    Hi,

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

    Thank you !

  3. Rahe
    Member
    Plugin Author

    Posted 4 years ago #

    Hi,

    Fixed in 1.0.3 ! Thank you again !

  4. Brad Touesnard
    Member
    Posted 4 years ago #

    Awesome, thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Simple Image Sizes
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic