Fixed several notices in core and bundled plugins.
Obsolete line removal.
Coding standards
Merge pull request #5217 from Srokap/notices_fix

Fixed several notices in core and bundled plugins.