Title: Enable Media Replace
Author: ShortPixel
Published: <strong>2009年6月1日</strong>
Last modified: 2026年3月3日

---

プラグインを検索

![](https://ps.w.org/enable-media-replace/assets/banner-772x250.png?rev=2322194)

![](https://ps.w.org/enable-media-replace/assets/icon-256x256.png?rev=1940728)

# Enable Media Replace

 作者: [ShortPixel](https://profiles.wordpress.org/shortpixel/)

[ダウンロード](https://downloads.wordpress.org/plugin/enable-media-replace.4.1.8.zip)

 * [詳細](https://ja.wordpress.org/plugins/enable-media-replace/#description)
 * [レビュー](https://ja.wordpress.org/plugins/enable-media-replace/#reviews)
 *  [インストール](https://ja.wordpress.org/plugins/enable-media-replace/#installation)
 * [開発](https://ja.wordpress.org/plugins/enable-media-replace/#developers)

 [サポート](https://wordpress.org/support/plugin/enable-media-replace/)

## 説明

**無料で軽量かつ使いやすいプラグインで、新しいファイルをアップロードして古いファイル
を簡単に置換することができます。ファイルを削除したり、名前を変更したり、再度アップ
ロードする必要はありません ! 現在、[WP Offload Media](https://wordpress.org/plugins/amazon-s3-and-cloudfront/)
と完全に互換性があります !
 新しいベータ機能 ! eコマースソリューションとの統合性
を高めるために、画像の背景を削除できるようになりました ! [ShortPixel](https://wordpress.org/plugins/shortpixel-image-optimiser/)
チームがサポートしています 🙂

#### とても時間の節約

WordPress のメディアライブラリにアップロードした画像やファイルを更新したいとき、
いちいちファイルを削除して、まったく同じ名前の別のファイルをアップロードするのは
面倒だと思いませんか ?

でももう大丈夫 !

これで、アップロードされたファイルを、本来あるべき「メディア編集」表示で置換する
ことができます。メディアの置換は、2つの方法で行うことができます :

#### ファイルを置換するのは簡単

 1. 単純にファイルを置換する。このオプションでは、置換したいファイルと同じタイプのファイル
    をアップロードする必要があります。アップロードしたファイルがどのような名前であっ
    ても、添付ファイル名は同じになります。
 2. ファイルを置換し、新しいファイル名を使用し、すべてのリンクを更新します。このオプション
    をチェックすると、古いファイルは、アップロードするファイルの名前とタイプに置き換え
    られます。現在のファイルを指すすべてのリンクは、新しいファイル名を指すように更新
    されます。新しいファイルを置くフォルダーや、新しいファイルの日付に関する追加オプション
    も、置換画面で利用できます。

このプラグインは非常に強力で、WordPress で構築された主要なサイトには必ず必要なもの
です。また、置換された画像のプレビューも可能です !

#### ベータ版の新機能: 任意の画像の背景を削除することができるようになりました !

メディアの置換と同様に、メディアライブラリから画像の背景を削除することも可能です!
背景除去機能は、画像をShortPixel の API に送信し、背景を除去して、プレビューウィンドウ
で送り返します。問題がなければ、背景が除去された画像に置き換えるだけです！ソース
画像が PNG ファイルの場合、透明な背景が得られますが、他の画像は初期設定で白の無地
になっています。また、埋め込まれたカラーピッカーで別の色を選択することもできます。

背景除去機能はまだベータ版であり、合理的な使用方法であれば無料で利用できる予定です。

背景除去機能を使用しない場合は、テーマの functions.php ファイルにこの行を追加する
か、[Code Snippets](https://wordpress.org/plugins/code-snippets/) などのプラグイン
を使用してください:

    ```
    `add_filter( 'emr/feature/background', '__return_false' );```
    ```

同じようなフィルターで、遠隔通知システム用のものがあります:

    ```
    `add_filter( 'emr/feature/remote_notice', '__return_false' );```
    ```

メディア編集画面にリダイレクトする前の待機時間を短縮するには、以下のフィルターを
使用し、秒単位で待機時間を指定してください (0は即座にリダイレクトされますが、特定
の構成で問題が発生する可能性があります):

    ```
    `add_filter('emr/success/timeout', function () { return 3; });```
    ```

#### ファイルの修正時間を表示する

ファイルの更新日を取得して、投稿やページ内に表示するショートコードがあります。コード
は以下の通りです:
 [file_modified id=XX format=XXXX] ここで、「id」は必須、「format」
はオプションで、日付と時間のフォーマットに関する現在の WordPress の設定がデフォルト
となります。

つまり、`[file_modified id=870]` は、ID が870のファイルがサイトで最後に更新された
時刻を表示することになります。ファイルの ID を取得するには、メディアライブラリで
ファイルを編集する際に URL を確認します (スクリーンショット#4参照)

もし、時刻を表示する形式をより細かく制御したい場合は、format オプションを使用する
ことができます。つまり、`[file_modified id=870 format=Y-m-d]` はファイルが更新さ
れた日付は表示しますが、時刻は表示しません。format 文字列は、[the standard PHP date() 書式タグ](http://php.net/manual/en/function.date.php)
を使用します。

**[ShortPixel](https://shortpixel.com)によるその他のプラグイン:**

 * [FastPixel Caching](https://wordpress.org/plugins/fastpixel-website-accelerator/)–
   WP 最適化が簡単になりました
 * [ShortPixel Image Optimizer](https://wordpress.org/plugins/shortpixel-image-optimiser/)–
   WebP や AVIF 配信を含む、サイト上のすべての画像の最適化と圧縮を行います
 * [ShortPixel Adaptive Images](https://wordpress.org/plugins/shortpixel-adaptive-images/)–
   画像の即時最適化とCDN配信
 * [Resize Image After Upload](https://wordpress.org/plugins/resize-image-after-upload/)–
   アップロードされた各画像のサイズを自動的に変更します
 * [reGenerate Thumbnails Advanced](https://wordpress.org/plugins/regenerate-thumbnails-advanced/)–
   サムネイルを簡単に再生成することができます
 * [WP SVG Images](https://wordpress.org/plugins/wp-svg-images/) – SVG ファイルを
   メディアライブラリに安全にアップロードすることができます

**お問い合わせください !**

 * メール [https://shortpixel.com/contact](https://shortpixel.com/contact)
 * Twitter [https://twitter.com/shortpixel](https://twitter.com/shortpixel)
 * Facebook [https://www.facebook.com/ShortPixel](https://www.facebook.com/ShortPixel)
 * LinkedIn [https://www.linkedin.com/company/shortpixel](https://www.linkedin.com/company/shortpixel)

### Wishlist / Coming attractions

何か提案はありますか ? お気軽に [ShortPixel](https://shortpixel.com/contact) まで
ご連絡ください。

### コントリビュート

プラグインの改善を支援したい場合は、GitHub [こちら](https://github.com/short-pixel-optimizer/enable-media-replace)
からプルリクエストを送信してください。

## スクリーンショット

 * [[
 * メディアライブラリの新しいリンク
 * [[
 * [メディアの編集] ビューに表示されるメディアの置換ボタンです。
 * [[
 * アップロードオプション
 * [[
 * 編集ファイルの URL でファイル ID を取得します

## インストール

素早く簡単なインストール:

 1. フォルダー `enable-media-replace` をプラグインディレクトリにアップロードします。
 2. WordPress の「プラグイン」メニューからプラグインを有効化してください
 3. 完了しました。

## FAQ

### このプラグインで見つかったセキュリティバグはどこに報告すればいいですか ?

Enable Media Replace プラグインのソースコードで発見されたセキュリティバグを[Patchstack Vulnerability Disclosure Program](https://patchstack.com/database/vdp/enable-media-replace)
を通じて報告してください。Patchstack チームは、検証、CVE の割り当てを支援し、この
プラグインの開発者に通知します。= このプラグインは実際に何をするのですか ? =

このプラグインを使うと、WordPress メディアライブラリにアップロードされたファイル
を簡単に更新/置換することができます。

### どのように動作するのですか ?

「メディアを置換」と呼ばれる新しいオプションがメディアの編集ビューで利用可能になり
ます。ここで、新しいファイルをアップロードして古いファイルを置換することができます。

### ファイルを置換しましたが、変更されませんでした !

これが起こる主な理由は2つあります。

まず、特に画像を差し替えた場合は、キャッシュされたバージョンのファイルを表示してい
ないことを確認してください。念のため、ブラウザの「更新」を押してください。

次に、本当にファイルが変更されていないように見える場合は、WordPress がアップロード
フォルダ内のファイルに書き込み権限を持っているかどうかを確認します。WP のインストール
を移動したことがある場合 (おそらく新しいサーバーに移動したとき) 、アップロードさ
れたファイルのパーミッションは一般的にリセットされ、WordPress がファイルを変更する
権限を持たなくなるようになっています。この方法がわからない場合は、ウェブサーバー
のオペレーターに問い合わせてみましょう。

## 評価

![](https://secure.gravatar.com/avatar/f44fc825bd645f0ac8524b5b0c711a2756274dd679bdf67e60eaead2c2953468?
s=60&d=retro&r=g)

### 󠀁[The best tool ever and still free](https://wordpress.org/support/topic/the-best-tool-ever-and-still-free/)󠁿

 [Klaus Wilde](https://profiles.wordpress.org/klwild/) 2026年3月6日 1 reply

The best tool ever and still free. It’s not needed all the time, but kudos to the
developers anyway

![](https://secure.gravatar.com/avatar/8697d18baa5239611d798edf8206b6bb95fa6c6134917e133a67fe0c2ea50f07?
s=60&d=retro&r=g)

### 󠀁[useful for batch replacing via media library on latest wordpress](https://wordpress.org/support/topic/sadly-not-that-useful-when-editing-images-in-a-post/)󠁿

 [platinumshore](https://profiles.wordpress.org/platinumshore/) 2025年11月22日 7
replies

might be useful for bulk changing images within the media library, but not of any
use when trying to change an image via the post editor.. a nice replace option would
be wonderful.. but as it is not much use for myself on single posts – using latest
version of wordpress which i think is 6.8.3 Edited.. damn.. just found out that 
the images i was trying to change were set for some reason set as ‘custom urls’ 
despite been in the media library (maybe due to using the auto insert plugin from
content from another website?), if set directly to the media library then a replace
option in latest wordpress automatically appears anyway.. my ERROR. changed the 
star rating to 5/5 for just batch editing in the media library cuz latest wordpress
if an image is properly set to the media library offers a replace option anyway..

![](https://secure.gravatar.com/avatar/facec140f8ec2bda3b45634bbeb7053bb8810b0fec9f0a6045fe7af9c21885b5?
s=60&d=retro&r=g)

### 󠀁[Used everywhere !!](https://wordpress.org/support/topic/used-everywhere-2/)󠁿

 [Ferdy S](https://profiles.wordpress.org/ferdysopian/) 2025年11月19日 1 reply

very useful when you only need to change files

![](https://secure.gravatar.com/avatar/18bbc8fea31dc771f67fa899321fed424c1a6d9a83b4e1a3a981127b368d30e0?
s=60&d=retro&r=g)

### 󠀁[Has major Bricks Builder integration issue](https://wordpress.org/support/topic/has-major-bricks-builder-integration-issue/)󠁿

 [Lbch](https://profiles.wordpress.org/iinteractivenl/) 2025年9月9日 1 reply

The plugin has a major integration issue with Bricks Builder, that will potentially
break pages.This issue has been acknowledged but is still not fixed after more than
a year.For more information check:…/support/topic/replace-svg-files/…/support/topic/
bricks-builder-compatibility-still-not-fixed/Or search the Bricks Builder support
forum.

![](https://secure.gravatar.com/avatar/fc4b8eb16d718a9c3a6cb920b7cca8a50b871444b46f2d90e6e981a939c416d3?
s=60&d=retro&r=g)

### 󠀁[Wonderful, thanks so much](https://wordpress.org/support/topic/wonderful-thanks-so-much/)󠁿

 [jonathanedwardmann](https://profiles.wordpress.org/jonathanedwardmann/) 2025年
6月20日 1 reply

Easy to set up and use, thanks for a terrific plugin!

![](https://secure.gravatar.com/avatar/db7aa71aab099f8eef99e1b9d0f3cfdaa4d56b4181c35eaf955e0f4d366e3fb1?
s=60&d=retro&r=g)

### 󠀁[A necessity](https://wordpress.org/support/topic/a-necessity-6/)󠁿

 [myracat](https://profiles.wordpress.org/myracat/) 2025年4月23日 1 reply

Finding this plugin was basically the impetus for switching our support center to
a Wordpress setup. We have to update screenshots all the time in multiple locations,
so this plugin means we just update the one image from the media library. HUGE time
saver and it makes it really easy 🙂

 [ 300件のレビューをすべて表示 ](https://wordpress.org/support/plugin/enable-media-replace/reviews/)

## 貢献者と開発者

Enable Media Replace はオープンソースソフトウェアです。以下の人々がこのプラグイン
に貢献しています。

貢献者

 *   [ ShortPixel ](https://profiles.wordpress.org/shortpixel/)

“Enable Media Replace” は35ロケールに翻訳されています。 [翻訳者](https://translate.wordpress.org/projects/wp-plugins/enable-media-replace/contributors)
のみなさん、翻訳へのご協力ありがとうございます。

[“Enable Media Replace” をあなたの言語に翻訳しましょう。](https://translate.wordpress.org/projects/wp-plugins/enable-media-replace)

### 開発に興味がありますか ?

[コードを閲覧](https://plugins.trac.wordpress.org/browser/enable-media-replace/)
するか、[SVN リポジトリ](https://plugins.svn.wordpress.org/enable-media-replace/)
をチェックするか、[開発ログ](https://plugins.trac.wordpress.org/log/enable-media-replace/)
を [RSS](https://plugins.trac.wordpress.org/log/enable-media-replace/?limit=100&mode=stop_on_copy&format=rss)
で購読してみてください。

## 変更履歴

#### 4.1.8

Release date: March 3, 2026
 * Fix: Unauthorized modification and deletion of media
files vulnerability responsibly disclosed by the WordFence team; * Fix: The plugin
works for RTL languages now; * Fix: Textdomain modules are loaded properly in all
cases; * Tweak: Added a permission check for the ShortPixel recommendation displayed
after the replacement; * Tweak: Added the raw file path to the filemodel filter;*
Tweak: Added a filter to disable the database replacements (thanks @seed-glauco);*
Tweak: Updated the banners from the plugin pages.

#### 4.1.7

Release date: October 2, 2025
 * Fix: A potential “Cross-Site Scripting” vulnerability
has been patched, responsibly disclosed by the WordFence team; * Fix: Corrected 
a few text typos.

#### 4.1.6

Release date: March 25, 2025
 * Fix: A potential “Reflected Cross-Site Scripting”
vulnerability has been patched, responsibly disclosed by the PatchStack team.

#### 4.1.5

Release date: December 14, 2023
 * Tweak: Added a filter to disable the remote notification
system added in version 4.1.0; * Fix: A potential “Reflected Cross-Site Scripting”
vulnerability has been patched, responsibly disclosed by the Wordfence team.

#### 4.1.4

Release date: September 22, 2023
 * Fix: The latest security fix was breaking the
replacements made with Beaver Builder (and possibly other builders);

#### 4.1.3

Release date: September 14, 2023
 * Fix: A possible PHP Object Injection was patched,
which could be exploited under certain conditions; * Fix: ShortPixel Image Optimizer
handles offloading when both plugins are used with WP Offload Media.

#### 4.1.2

Release date: April 24, 2023
 * Tweak: Reduced the wait time before redirecting 
to the media edit page to half (5s); * Fix: If an item is not offloaded, no attempt
is made to update its data; * Fix: Removed some double spaces from the plugin strings(
thanks to @Presskopp).

#### 4.1.1

Release date: April 13, 2023
 * Tweak: Added a filter to reduce or remove the wait
time before redirecting to the media edit page; * Fix: Replacement works again on
multisite setups where the plugin reported the path outside the uploads folder; *
Fix: In some cases, replacement didn’t work when images were offloaded; * Fix: Some
translation strings were corrected (thanks @alexclassroom !).

#### 4.1.0

Release date: March 28, 2023
 * New: Integration with WP Offload Media; items that
are offloaded can now be replaced correctly; * New: Switch to a Replacer module 
that improves the code and makes it more robust; * New: Adding an intermediate confirmation
page to solve possible redirection issues; * Tweak: The new image can now be dragged
and dropped directly into the preview area; * Tweak: Improved the display of both
the original image and the new image on the replacement screen; * Tweak: Improved
the notification system and added a mechanism for remote notifications; * Tweak:
Updated the texts and banners to look better on the replacement screen; * Fix: Added
documentation in the readme to disable the background removal feature (kudos to 
@jstask82); * Fix: Increased the security of the plugin by adding checks for various
AJAX calls;

#### 4.0.3

Release date: February 21, 2023
 * Fix: background removal notification is no longer
displayed when this feature is disabled with the filter; * Compat: improved compatibility
with PHP 8.1 and 8.2 * Tweak: updated the banners on the replace page.

#### 4.0.2

Release date: January 13, 2023
 * Fix: patched a security vulnerability that could
allow loading an unauthorized file during the replace operation; * Fix: finish the
replace operation even if the tmp file cannot be removed due to file permissions
issues; * Fix: when replacing a scaled file with a non-scaled file, some links were
broken; * Fix: under certain conditions a PHP warning about an undefined array key
was displayed.

#### 4.0.1

Release date: November 23, 2022
 * Fix: files are now replaced correctly in environments
running on Windows/IIC servers; * Fix: the mime type is now correctly detected, 
so that a warning is no longer displayed when replacing PDFs; * Fix: the plugin 
no longer tries to load its code for post IDs that are not attachments, like comments;*
Fix: some warnings were displayed when using the Members plugin; * Compat: added
integration for SiteOrigin Page Builder to correctly replace files in its widgets;*
Compat: added `emr_after_remove_current` action hook (thanks @luistar15); * Tweak:
added filter to disable the background replace functionality.

#### 4.0.0

Release date: September 5th, 2022
 * New: added the functionality to remove the 
background for any image; * Fix: images added to the new block-style widgets were
not replaced; * Fix: the original file was not removed after replacement if a multilingual
plugin was installed; * Fix: additional checks were added to the new upload path
for replacements, to avoid possible vulnerabilities, kudos to @soulseekah; * Fix:
an object cache flush was added after an image was replaced to prevent the content
from still being cached in the post editor; * Fix: if there was no `_wp_attached_file`
in the postmeta table a fatal error was thrown; * Fix: the time zone was not displayed
correctly on the Replace Media screen; * Fix: added some additional checks for file
path to avoid `open_basedir` restrictions; * Fix: added titles for the Replace Media
and Remove Background screens; * Fix: various small CSS/JS fixes, wording updates
and code cleanups;

#### 3.6.3

Release date: November 25th, 2021
 * Fix: the shortcode `file-modified` works again
for non-privileged visitors as well; * Compat: if other plugins don’t properly use
WP Hooks, don’t return errors; * Tweak: updated banners list from the EMR screen.

#### 3.6.2

Release date: November 8th, 2021
 * Fix: there was an issue in file.php with checking
mime-type, resulting in weird mime-type values in certain cases (thanks @dougaxe1
for the PR); * Fix: if target mime type returns empty, don’t store that; * Tweak:
removed old notification about SPIO.

#### 3.6.1

Release date: October 27th, 2021
 * Fix: there was a broken image in one of the 
plugin notices; * Fix: added a check for the function `mime_content_type`, which
doesn’t seem to always be available on various hosts; * Fix: the plugin checks if
the current user has rights to install/activate plugins and only then displays the
1-click installers and also a filter is available now;

#### 3.6.0

Release date: October 11th, 2021
 * New: Constant EMR_CAPABILITY can define extra
user roles to allow and deny replacements; * New: Replacing an usual image with 
an SVG file will just replace all thumbnails by the main file; * New: Also replaces
caption when set in Exif data (when replacing with updating all links); * Tweak:
Added Now and Original options to Custom Date for usability; * Tweak: changes/updates
to the banners from the EMR screen; * Fix: EMR now respects edit_other_posts permissions
using default permissions; * Fix: EMR with ALLOW_UNFILTERED_UPLOADS enabled (and
allowed role) will not limit non-allowed uploads; * Fix: some missing and wrong 
text-domains are now corrected (thanks @alexclassroom); * Fix: a missing dot in 
the plugin description was preventing the transaltions to properly work; * Fix: 
the plugin can now be uninstalled/deleted on PHP 8.

#### 3.5.0

Release date: October 29th 2020
 * New: EMR now replaces across all meta tables;*
New: the plugin remembers last used settings; * New: integration with the LiteSpeed
cache plugin and webserver; * Tweak: manual Logging will no longer work if user 
is not logged as administrator; * Tweak: added `post_id` to `enable-media-replace-
upload-done` action args, props to @Jan Stiegler; * Fix: fully works now with Elementor;*
Fix: the issue for WP-Bakery and URL-Encoded links is now fixed; * Fix: the plugin
should now work with images added through Visual Composer; * Fix: EMR now uses queries
instead of WordPress functions, correctly handling slashes and JSON formats; * Fix:`-
scaled` images generated by WordPress are now removed when replacing an image;

#### 3.4.2

Release date: August 17th 2020
 * New – Also display files size in the replacement
windows; * Fix – Replacing image with pdf file would cause noticesi; * Fix – Compensation
for faulty WordPress installation that return empty error string on wp_upload_dir
and falsely return relative paths and urls on WP core functions; * Fix – When choosing‘
replace file and update names’ and then uploading a file with identical name as 
source, it would postfix the duplicate name. This is no longer the case; * Fix –
Wording clarification for the situation when the filename is changed, which will
lead to broken links from external sites; * Fix – Added hard paths to require_once
satements in order to prevent WP-CLI errrors; * Fix – If source image doesn’t exist
or in error state, replacement would be prevented by Javascript issue.

#### 3.4.1

Release date: June 18th 2020
 * Fix – PHP Error when settings permissions failed.

#### 3.4.0

Release date: June 9th 2020
 * New – In edit media screen EMR notes user who replaced
file if this was not uploader; * New – Added Drag and Drop area for files; * New–
When replacing with new file name, now also possible to update upload path; * Fix–
Various minor CSS tweaks and fixes; * Update of Underlying libraries

#### 3.3.12

Release date: 27th April 2020
 * Fixed – When trying to upload over-limit file would
show too many error messages; * Language – 2 new strings added, 0 updated, 0 fuzzied,
and 0 obsoleted.

#### 3.3.11

Release date: 10th March 2020
 * Fix the crashing of certain frontend builders when
the plugin is active.

#### 3.3.10

Release date: 23rd February 2020
 * Fix issue with JSON encoding which was interfering
with Advanced Custom Fields and other plugins

#### 3.3.9

Release date: 23rd February 2020
 * Fix issue with JSON encoded strings * Language–
0 new strings added, 2 updated, 0 fuzzied, and 0 obsoleted

Release date: 19th February 2020
 * Fix issue with search/replacing non-image attachments
and query * Language – 0 new strings added, 2 updated, 0 fuzzied, and 0 obsoleted

#### 3.3.8

Release date: 18th February 2020
 * Fixes for WP 5.3+ -scaled images system. Will
now replace those as well. * Updating and replacing images and thumbnails should
now work for serialized (and such) metadata. – For Beaver Builder * Add extra warning
if mimetype is not allowed by WordPress for upload * Put Javascript version in wp_register_script*
Hidden double ‘replace media’ * Replace Image label to Replace Media * Removed constant
S3_UPLOADS_AUTOENABLE * Improved detection of SVG image sizes * Fixed – Logger doesn’t
call wp_upload_dir when not debugging * Extra – Javascript tries to resume after
external errors. * Language – 0 new strings added, 2 updated, 0 fuzzied, and 0 obsoleted

#### 3.3.7

Release date: 13th November 2019
 * call the hook enable-media-replace-upload-done
on both modes * fix JSON compatibility for hostings that don’t have JSON module 
activated * Language – 0 new strings added, 0 updated, 0 fuzzied, and 0 obsoleted

#### 3.3.6

Release date: 5th September 2019
 * fix JSON compatibility for hostings that don’t
have JSON module activated

#### 3.3.5

Release date: 25th July 2019
 * fix Replace button on the MediaLibrary image details
popup

#### 3.3.4

Release date: 23rd July 2019
 * compatibility fixes for WP version 4.8 and below*
cache killer

#### 3.3.3

Release date: 19th July 2019
 * Fix error “using $this when not in object context”
on some PHP versions

#### 3.3.2

Release date: 17th July 2019
 * Check if medium size !> 400px, display that one,
otherwise smallest. * Fixed: Links not updated when using Advanced Custom Fields*
Fixed: Fails silently when file is too big for upload * When source file does not
exist, show placeholder instead of failed image load * Fixed: Fatal error when replacing
images * Fixed: Not the right time zone on replace * Fixed Beaver Builder incompatibility
by not allowing replace with rename. * Fixed: Cannot replace non default WordPress
file types, even those allowed to upload [ Media Library Assistant compat ] * Fixed:
error when trying to remove a file that doesn’t exist – because the files are actually
on another server

#### 3.3.1

Release date: 18th June 2019
 * Fix error class not found on WPEngine

#### 3.3.0

 * 画像を置換して名前を変更するときに、postmetaのmeta_value でも検索/置換が行われる
   ようになりました。
 * PDF サムネイルも置換します。
 * EXIF からタイトルをコピーする
 * CSS に組み込まれた RTL ビュー
 * ‘wp_handle_upload’ filter should be treated as such (and not as action)
 * GUID の代わりに wp_attached_file を使用する
 * Fix: replace missing file
 * Fix: aphostrophe breaking the upload
 * Fix: broken “before” image
 * Fix: update properly the date
 * Fix: errors for non-image items in Media Library
 * Fix: empty admin menu item created
 * すべてのコードをリファクタリング

#### 3.2.9

 * properly replace thumbnails names in the content when the replaced image has 
   a different aspect ratio, thus the new thumbnails have a different height in 
   the name.

#### 3.2.8

 * fix for failures in link updating when replacing file because of addslashes –
   use prepared query instead
 * replace basename with wp_basename because basename doesn’t work well with UTF8

#### 3.2.7

 * Add minimum required php version to run the plugin.
 * Security: Prevent direct access to php files.
 * Security: Prevent direct access to directories.
 * Security: Escape translation strings using `esc_attr__()` and `esc_html__()` 
   functions.
 * Fix RTL issues.

#### 3.2.6

 * 画像を置換しようとしたときに画像が選択されていなくても 404 エラーは発生しません
 * added preview so you can check the image being replaced and also the image that’s
   being replaced with
 * .datファイルは置換することができます (以前のバージョンでは機能が誤って削除され
   ていました)
 * added compatibility with S3 upload plugin
 * 画像が置換されると、日付も更新されます

#### 3.2.5

 * remove the leftover setcookie and the plugins recommendations.

#### 3.2.4

 * Fix PDF thumbnails not replaced when replacing a PDF
 * Fix not replacing text files with .dat extension

#### 3.2.3

 * disable ShortPixel recommendation on secondary sites of a multisite install when
   it was network activated.

#### 3.2.2

 * Fixed compatibility with ShortPixel and Resize Image After Upload
 * Added ShortPixel links and images, fixed the problem of ShortPixel recommendation
   not dismissing.

#### 3.2.1

 * Bugfix, typo made metadata changes (thanks GitHub user icecandy!)
 * Removed Shortpixel links and images

#### 3.2

 * WP 4.9.4 でテスト済み
 * Added Shortpixel link in replace media screen

#### 3.1.1

 * Fixed bug introduced in an earlier version, preventing the updating of URLs on
   pages/posts if the link did not contain the domain name

#### 3.1

 * Got rid of some pesky old code, and added some better filtering options, thanks
   to GitHub users speerface, aaemnnosttv, and ururk
 * Brand new, shiny code to replace other image sizes in embedded media, thanks 
   to GitHub user ianmjones!
 * WP 4.8 でテスト済み

#### 3.0.6

 * WP 4.7.2 でテスト済み
 * 新しいPT翻訳 (Pedro Mendoncaに感謝します https://github.com/mansj/enable-media-
   replace/commit/b6e63b9a8a3ae46b3a6664bd5bbf19b2beaf9d3f)

#### 3.0.5

 * WP 4.6.1 でテスト済み

#### 3.0.4

 * .pt 翻訳のタイプミスを修正しました (https://github.com/mansj/enable-media-replace/
   pull/18)
 * 変更日関数のエラー処理の改善を修正しました (https://github.com/mansj/enable-media-
   replace/pull/16)
 * WP 4.4.1 でテスト済み

#### 3.0.3

 * メディア画面を検出する古い方法を廃止し、メディアを置換するボタンがより多くの場所
   に表示されるようになりました。
 * 複数のユーザーの希望に応じて、get_attached_file() の呼び出しでフィルターがスキップ
   されないようにしました。
 * chmod() でのエラーメッセージを抑制。
 * 日本語訳を追加しました (感謝します chacomv)

#### 3.0.2

 * 言語ファイルをクリーンアップしました。
 * ポルトガル語の翻訳を追加しました (pedro-mendoncaに感謝します)
 * WP 4.1 でテスト済み
 * 不足しているスウェーデン語の翻訳文字列を追加しました

#### 3.0.1

 * Tiny fix to re-insert the EMR link in the media list view.

#### 3.0

 * WordPress 4.0 に対応
 * Now inheriting permissions of the replaced files, [Thank you Fiwad](https://github.com/fiwad)

#### 2.9.7RC1

 * Moved localization files into their own directory. [Thank you Michael](https://github.com/michael-cannon)
 * Moved screenshots into their own directory. [Thank you Michael](https://github.com/michael-cannon)

#### 2.9.6

 * Added fix by Grant K Norwood to address a possible security problem in SQL statements.
   Thanks Grant!
 * Created GitHub repo for this plugin, please feel free to contribute at github.
   com/mansj/enable-media-replace

#### 2.9.5

 * Bug fix for the short code displaying the modification date of a file
 * WP 3.9 に備えて、すべてのデータベースクエリーを更新しました

#### 2.9.4

 * WordPress のタイムゾーン変更のバグ修正
 * Minor UI change to inform the user about what actually happens when replacing
   an image and using a new file name

#### 2.9.3

 * Added call to update_attached_file() which should purge changed files for various
   CDN and cache plugs. Thanks Dylan Barlett for the suggestion! (https://wordpress.
   org/support/topic/compatibility-with-w3-total-cache)
 * 2.9.2 で追加された新しいフックで発生する可能性のあるエラーが抑制されました

#### 2.9.2

 * 小さなバグ修正
 * 開発者がファイルを更新するときに可能なCDNをパージできるようにするためのフック
   を追加しました-提案に感謝します !

#### 2.9.1

 * ブラジルポルトガル語の翻訳を追加しました。Roger Nobrega に感謝します。
 * コードを提供してくれた Jonas Lundman のおかげで、ファイル名を作成するためのフィルター
   フックが追加されました。
 * コードを提供してくれた Jonas Lundman のおかげで、添付ファイルの編集画面に変更
   日が追加されました。
 * Enhanced the deletion method for old file/image thumbnails to never give unnecessary
   error messages and more accurately delete orphaned thumbs

#### 2.9

 * ポルトガル語の翻訳を追加しました。Bruno Miguel Bras Silvaに感謝します。
 * メディアライブラリからの新しい編集リンク
 * アップロード後、プラグインはライブラリではなく編集画面に戻るようになりました

#### 2.8.2

 * Made another change to the discovery of media context which will hopefully fix
   a bug in certain cases. Thanks to “Joolee” at the WordPress.org forums!
 * Added a new, supposedly better Russian translation from “Vlad”.

#### 2.8.1

 * Fixed a small bug which could create error messages on some systems when deleting
   old image files.

#### 2.8

 * 新しい画像ファイルがアップロードされたときにサムネイルを削除するための新しい安全
   な方法。
 * 簡体字中国語 (Tunghsiao Liuに感謝) とイタリア語 (grazie Marco Chiesi) の新しい
   翻訳
 * Added method for detecting upload screen to ensure backward compatibility with
   versions pre 3.5

#### 2.7

 * A couple of changes made to ensure compatibility with WordPress 3.5. Thanks to
   Elizabeth Powell for the fixes!

#### 2.6

 * New and improved validation of uploaded files, now using WP’s own functions for
   checking file type and extension. Thanks again to my old friend Ulf “Årsta” Härnhammar
   for keeping us all on our toes! 🙂 This should also hopefully fix the problems
   people have been having with their installations claiming that perfectly good
   PDF files are not allowed file types.

#### 2.5.2

 * The “more reliable way” of determining MIME types turned out to be less reliable.
   Go figure. There seems to be no perfect way of performing a reliable check for
   MIME-types on an uploaded file that is also truly portable. I have now made checks
   for the availability of mime_content_type() before using it, using the old method
   as a fall-back. It is far from beautiful, so if anybody has a better way of doing
   it, please contact me!

#### 2.5.1

 * Bug fix – there is now a more reliable way of determining file type on your upload
   so you can upload PDF files without seeing that pesky “File type does not meet
   security guidelines” message.
 * デンマーク語への新しい翻訳 – Michael Bering Petersen に感謝します

#### 2.5

 * WordPress 3.2.1 でテスト済み。
 * ドイツ語への新しい翻訳 – MartinLettnerに感謝します！
 * フランス語への新しい翻訳 – François Colletteに感謝します

#### 2.4.1

 * Bug fix for WordPress 3.1 RC. Now properly tested and should be working with 
   3.1 whenever it finally comes out. 🙂

#### 2.4

 * Bug fixes, security fixes. Thanks to my old pal Ulf “Årsta” Härnhammar for pointing
   them out!
 * アップロードの新しい方法は、セキュリティを強化するために、WPを回避します。

#### 2.3

 * Ben ter Stal のおかげで、多くのコードがトリミングおよび強化されました。 Windows
   システムで適切に動作するようになり、セキュリティが向上し、読み込みが最適化され
   ました。
 * Ben terStal によるオランダ語の翻訳を追加しました。

#### 2.2

 * Bug fix, fixed typo in popup.php, thanks to Bill Dennen and others for pointing
   this out!

#### 2.1

 * 新しいショートコード – サイトにファイルの変更日を表示します（詳細については説明
   を参照してください）
 * A couple of bug fixes for final release of 3.0 – Thanks to Jim Isaacs for pointing
   them out!

#### 2.0.1

 * SSL アドミンのサポートが追加されました

#### 2.0

 * メディアを置換するときのポップアップをインラインナビゲーションに置き換えました
 * メディアの下のアドミンリンクに手順を追加しました

#### 1.4.1

 * WordPress 3.0.2でテスト済み

#### 1.4

 * ショートタグを削除して互換性を高めました。

#### 1.3

 * Added support for wp_config setting “FORCE_SSL_ADMIN”

#### 1.2

 * Fat Cower のおかげで、ロシア語の翻訳が追加されました。

#### 1.1

 * マイナーなバグ修正、IE8 でも動作するようになりました

#### 1.0

 * プラグインの最初の安定バージョン。

## メタ

 *  バージョン **4.1.8**
 *  最終更新日 **2か月前**
 *  有効インストール数 **600,000+**
 *  WordPress バージョン ** 4.9.7またはそれ以降 **
 *  検証済み最新バージョン: **6.9.4**
 *  PHP バージョン ** 5.6またはそれ以降 **
 *  言語
 * [Catalan](https://ca.wordpress.org/plugins/enable-media-replace/)、[Chinese (Taiwan)](https://tw.wordpress.org/plugins/enable-media-replace/)、
   [Czech](https://cs.wordpress.org/plugins/enable-media-replace/)、[Danish](https://da.wordpress.org/plugins/enable-media-replace/)、
   [Dutch](https://nl.wordpress.org/plugins/enable-media-replace/)、[Dutch (Belgium)](https://nl-be.wordpress.org/plugins/enable-media-replace/)、
   [English (Australia)](https://en-au.wordpress.org/plugins/enable-media-replace/)、
   [English (Canada)](https://en-ca.wordpress.org/plugins/enable-media-replace/)、
   [English (New Zealand)](https://en-nz.wordpress.org/plugins/enable-media-replace/)、
   [English (UK)](https://en-gb.wordpress.org/plugins/enable-media-replace/)、[English (US)](https://wordpress.org/plugins/enable-media-replace/)、
   [Finnish](https://fi.wordpress.org/plugins/enable-media-replace/)、[French (Canada)](https://fr-ca.wordpress.org/plugins/enable-media-replace/)、
   [French (France)](https://fr.wordpress.org/plugins/enable-media-replace/)、[Galician](https://gl.wordpress.org/plugins/enable-media-replace/)、
   [German](https://de.wordpress.org/plugins/enable-media-replace/)、[German (Switzerland)](https://de-ch.wordpress.org/plugins/enable-media-replace/)、
   [Hebrew](https://he.wordpress.org/plugins/enable-media-replace/)、[Italian](https://it.wordpress.org/plugins/enable-media-replace/)、
   [Japanese](https://ja.wordpress.org/plugins/enable-media-replace/)、[Korean](https://ko.wordpress.org/plugins/enable-media-replace/)、
   [Polish](https://pl.wordpress.org/plugins/enable-media-replace/)、[Portuguese (Brazil)](https://br.wordpress.org/plugins/enable-media-replace/)、
   [Portuguese (Portugal)](https://pt.wordpress.org/plugins/enable-media-replace/)、
   [Romanian](https://ro.wordpress.org/plugins/enable-media-replace/)、[Russian](https://ru.wordpress.org/plugins/enable-media-replace/)、
   [Spanish (Chile)](https://cl.wordpress.org/plugins/enable-media-replace/)、[Spanish (Colombia)](https://es-co.wordpress.org/plugins/enable-media-replace/)、
   [Spanish (Costa Rica)](https://es-cr.wordpress.org/plugins/enable-media-replace/)、
   [Spanish (Ecuador)](https://es-ec.wordpress.org/plugins/enable-media-replace/)、
   [Spanish (Mexico)](https://es-mx.wordpress.org/plugins/enable-media-replace/)、
   [Spanish (Spain)](https://es.wordpress.org/plugins/enable-media-replace/)、[Spanish (Venezuela)](https://ve.wordpress.org/plugins/enable-media-replace/)、
   [Swedish](https://sv.wordpress.org/plugins/enable-media-replace/)、[Turkish](https://tr.wordpress.org/plugins/enable-media-replace/)、
   [Ukrainian](https://uk.wordpress.org/plugins/enable-media-replace/).
 *  [プラグインを翻訳](https://translate.wordpress.org/projects/wp-plugins/enable-media-replace)
 * タグ
 * [change media](https://ja.wordpress.org/plugins/tags/change-media/)[remove background](https://ja.wordpress.org/plugins/tags/remove-background/)
   [replace](https://ja.wordpress.org/plugins/tags/replace/)[replace image](https://ja.wordpress.org/plugins/tags/replace-image/)
 *  [詳細を表示](https://ja.wordpress.org/plugins/enable-media-replace/advanced/)

## 評価

 5つ星中4.4つ星

 *  [  240 5-星レビュー     ](https://wordpress.org/support/plugin/enable-media-replace/reviews/?filter=5)
 *  [  13 4-星レビュー     ](https://wordpress.org/support/plugin/enable-media-replace/reviews/?filter=4)
 *  [  9 3-星レビュー     ](https://wordpress.org/support/plugin/enable-media-replace/reviews/?filter=3)
 *  [  6 2-星レビュー     ](https://wordpress.org/support/plugin/enable-media-replace/reviews/?filter=2)
 *  [  32 1-星レビュー     ](https://wordpress.org/support/plugin/enable-media-replace/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/enable-media-replace/reviews/#new-post)

[すべてのレビューを見る](https://wordpress.org/support/plugin/enable-media-replace/reviews/)

## 貢献者

 *   [ ShortPixel ](https://profiles.wordpress.org/shortpixel/)

## サポート

過去2ヶ月以内に解決した問題:

     2 / 2

 [サポートフォーラムを表示](https://wordpress.org/support/plugin/enable-media-replace/)

## 寄付

このプラグインが今後も改善できるよう応援しませんか ?

 [ このプラグインに寄付 ](https://www.paypal.me/resizeImage)