[wp-trac] [WordPress Trac] #42752: Rest api - can not convert array to string notice

WordPress Trac noreply at wordpress.org
Thu Dec 21 20:58:04 UTC 2017


#42752: Rest api - can not convert array to string notice
--------------------------+------------------------------
 Reporter:  steffanhalv   |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  REST API      |     Version:  4.9
 Severity:  normal        |  Resolution:
 Keywords:  Has-commit    |     Focuses:  rest-api
--------------------------+------------------------------

Comment (by steffanhalv):

 Replying to [comment:6 steffanhalv]:
 > @dd32 @thepanther71
 >
 > Your fix did work for me to and I dont think casting to json is a big
 security risk. (Im not having big insights into WP core thought)
 >
 > I added a commit, as this becomes a blocker for my use.
 >
 > See:
 > https://github.com/WordPress/WordPress/pull/329

 @dd32 I didnt know I couldnt contribute by github and I dont have time to
 get into the wp contribution workflow as it looks to time consuming to get
 into it for me.

 Could also have a possible relationship with
 https://core.trac.wordpress.org/ticket/42961#ticket or what do you think?
 Its both with how querystring is handled at least.

 This all makes my rest api code a bit "interesting" if you know what I
 mean. Its hard to code without commenting allot of why I did this and
 that.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42752#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list