[buddypress-trac] [BuddyPress Trac] #8505: Add php fallback for dismissing sitewide notices.

buddypress-trac noreply at wordpress.org
Thu Jul 8 17:23:39 UTC 2021


#8505: Add php fallback for dismissing sitewide notices.
------------------------------+----------------------
 Reporter:  dcavins           |       Owner:  dcavins
     Type:  enhancement       |      Status:  closed
 Priority:  normal            |   Milestone:  9.0.0
Component:  Messages          |     Version:  8.0.0
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |
------------------------------+----------------------
Changes (by dcavins):

 * owner:  (none) => dcavins
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"12990" 12990]:
 {{{
 #!CommitTicketReference repository="" revision="12990"
 Add php fallback for dismissing site-wide notices.

 Dismissal of sitewide notices has been handled
 solely via JavaScript in the Legacy and Nouveau
 template packs. This commit adds a new action
 URI at `{user_profile}/messages/notices/dismiss`
 that will dismiss the currently active notice for
 the logged-in user.

 We also add a new template function to create the
 nonced link, `bp_get_message_notice_dismiss_link()`,
 and make use of it in the core template function
 `bp_message_get_notices()` and in the Nouveau
 template for site-wide notices. In both cases, `button`
 elements have been converted to `anchor` elements
 linking to the new dismissal URI, so the action can be
 completed even if there is a problem with JavaScript.

 Fixes #8505.
 }}}

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8505#comment:3>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list