Support » Plugin: Force Regenerate Thumbnails » When Regenerate Thumbnails also installed the Media Action is missing

  • Hello,

    I noticed a minor conflict with the Regenerate Thumbnails plugin. If you install it before the Force Regenerate Thumbnails then the Media Action for Force Regenerate Thumbnails is missing because they both use the same action slug of regenerate_thumbnails.

    Looking into the code line 143 of force-regenerate-thumbnails.php within the add_media_row_action function;
    $actions['regenerate_thumbnails'] = '<a href="' . esc_url( $url ) . '">' . __( 'Force Regenerate Thumbnails', 'force-regenerate-thumbnails' ) . '</a>';

    If you make the action slug unique say using $actions[‘force_regenerate_thumbnails’] then the conflict is removed and both actions become available.

    Thanks

    • This topic was modified 2 years, 6 months ago by  Garrett Hyder.
  • The topic ‘When Regenerate Thumbnails also installed the Media Action is missing’ is closed to new replies.