WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #24672, comment 26


Ignore:
Timestamp:
04/05/2018 07:07:05 PM (20 months ago)
Author:
Andy Schmidt
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #24672, comment 26

    initial v1  
    44That sounds more like "name spacing" issue? That same potential exists if a plug-in creates a regular function in the root name space and later WordPress adding a function by that same name?
    55
    6 If developers add methods or properties, it is their responsibility to choose member names for which their is a reasonable expectation that they are highly unique to avoid future name clashes.
     6If developers add methods or properties, it is their responsibility to choose member names for which there is a reasonable expectation that they are highly unique to avoid future name clashes.
    77
    88And as far as escaping - I've come across filters/hooks in WordPress that expressly instruct developers that the return value should be escaped. So the potential of someone not reading carefully (or copying imperfect code samples somewhere) and NOT escaping the return values is also not specific to the ability to extending the WP_Post class?