[wp-trac] [WordPress Trac] #40459: WP_Site::__set() and WP_Network::__set() allow to set any property without a way to retrieve it

WordPress Trac noreply at wordpress.org
Sat Apr 15 11:49:18 UTC 2017


#40459: WP_Site::__set() and WP_Network::__set() allow to set any property without
a way to retrieve it
--------------------------------+----------------------------
 Reporter:  ocean90             |      Owner:
     Type:  defect (bug)        |     Status:  new
 Priority:  low                 |  Milestone:  Future Release
Component:  Networks and Sites  |    Version:  4.6
 Severity:  normal              |   Keywords:  needs-patch
  Focuses:  multisite           |
--------------------------------+----------------------------
 Noticed while working on #40458.

 The magic setters of `WP_Site` and `WP_Network` allow to set any property
 via `$this->$key = $value;` but neither `__set()` nor `__isset()` can
 handle custom properties. Not sure if they should or if we should just
 block any non-default properties.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40459>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list