[Plugin: Enable Media Replace] Undefined index: attachment_id
-
I have just downloaded the plugin and installed. When trying to set a Featured Image on Custom Post Type I am getting the error below.
Notice: Undefined index: attachment_id in {path-to}\wp-content\plugins\enable-media-replace\enable-media-replace.php on line 58I would suggest changing line 58 from:
if ($_GET["attachment_id"]) {
to:
if (isset($_GET["attachment_id"]) and $_GET["attachment_id"]) {hope that helps.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘[Plugin: Enable Media Replace] Undefined index: attachment_id’ is closed to new replies.