Did you try putting &debug=`0` in the newspublisher tag?
I just looked at the code again and I can't see any way this would happen unless either debug is set or you explicitly set &buttonCaption=`InNoShowList`.
I just thought of another possibility -- a system setting, user setting, or context setting called 'debug' and set to something other than 0. I guess it's also possible that a plugin might have a $debug variable that's bleeding through, but I doubt it.
One thing that might help diagnose it is to put this line just above the return statement at the bottom of the NpEditThisButton snippet:
die('DEBUG: ' . $debug . '<br /> BUTTON_CAPTION: ' . $buttonCaption);
And see what it prints.
[ed. note: BobRay last edited this post 14 years, 11 months ago.]