public function _replyToReplaceThickBoxText($sTranslated, $sText) { if (!in_array($this->getPageNow(), array('media-upload.php', 'async-upload.php'))) { return $sTranslated; } if ($sText !== 'Insert into Post') { return $sTranslated; } if ($this->getQueryValueInURLByKey(wp_get_referer(), 'referrer') !== 'admin_page_framework') { return $sTranslated; } if (isset($_GET['button_label'])) { return $_GET['button_label']; } return $this->oProp->sThickBoxButtonUseThis ? $this->oProp->sThickBoxButtonUseThis : $this->oMsg->get('use_this_image'); }