private function _getCallerScriptPath($sCallerPath) { $sCallerPath = trim($sCallerPath); if ($sCallerPath) { return $sCallerPath; } if (!is_admin()) { return null; } $_sPageNow = AmazonAutoLinks_AdminPageFramework_Utility::getElement($GLOBALS, 'pagenow'); if (in_array($_sPageNow, array('edit.php', 'post.php', 'post-new.php', 'plugins.php', 'tags.php', 'edit-tags.php'))) { return AmazonAutoLinks_AdminPageFramework_Utility::getCallerScriptPath(__FILE__); } return null; }