[wp-trac] [WordPress Trac] #56683: User role can't be set

WordPress Trac noreply at wordpress.org
Wed Oct 5 16:20:16 UTC 2022


#56683: User role can't be set
-----------------------------+------------------------------
 Reporter:  t3mmx            |       Owner:  (none)
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Role/Capability  |     Version:  6.0.2
 Severity:  trivial          |  Resolution:
 Keywords:                   |     Focuses:
-----------------------------+------------------------------
Changes (by t3mmx):

 * keywords:  needs-testing-info reporter-feedback =>
 * severity:  normal => trivial


Comment:

 Replying to [comment:2 ironprogrammer]:
 > Welcome to Trac, @t3mmx, and thank you for the report!
 >
 > Would you please clarify if the `customer` and `agent` roles already
 exist before the provided snippet is run? This will be helpful for other
 contributors as they work to reproduce this issue.
 >
 > Another item to confirm: Did the provided code work in WordPress 5.9?
 >
 > For guidelines on test reproduction instructions, please see the
 [https://make.wordpress.org/test/handbook/test-reports/#bug-defect-
 testing-instructions-template Bug Testing Instructions Template] in the
 Test Handbook 🙌🏻

 I found the source of the problem, and it was not a bug. Really SORRY. I
 discovered
 that a conditional tag cannot be called from the 'init' hook to which I
 had attached the function.
 The code was working before and I don't remember having made any changes
 to this file, which is why I immediately thought it was a bug. But after
 checking this was not the case. I haven't found a way to delete the
 ticket, I'm a little ashamed. Really sorry

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


More information about the wp-trac mailing list