Skip to:
Content

BuddyPress.org

Opened 9 years ago

Closed 9 years ago

#7617 closed defect (bug) (fixed)

refresh_blog_details is deprecated in WordPress 4.9

Reported by: imath Owned by: boonebgorges
Priority: normal Milestone: 2.9.2
Component: Blogs Version: 2.3.0
Severity: normal Keywords: has-patch
Cc:

Description

Hi team !

I hope you are all doing great :) I just found a little notice error into the Blogs component due to the use of a deprecated hook in WordPress 4.9.

I think the attached patch is fixing the issue, as the very promising 3.0 release is due in 6 days, I suggest this ticket to be fixed before, if possible.

😗

Attachments (1)

7617.patch​ (759 bytes ) - added by imath 9 years ago.

Download all attachments as: .zip

Change History (9)

#1 @hnla
9 years ago

Noticed this on Nouveaus github/travis checks for WP trunk tests throwing fails.

#2 follow-up: @DJPaul
9 years ago

3.0 won't be out until after December.

#3 @johnjamesjacoby
9 years ago

Patch looks OK. There might be more places this needs fixing, particularly around the multisite abstraction layer.

#4 @boonebgorges
9 years ago

  • Owner set to boonebgorges
  • Resolution → fixed
  • Status new → closed

In 11720:

In WP 4.9+, don't use deprecated 'refresh_blog_details' hook.

Props imath.
Fixes #7617.

#5 in reply to: ↑ 2 @netweb
9 years ago

  • Resolution fixed
  • Status closed → reopened

Replying to DJPaul:

3.0 won't be out until after December.

WordPress 4.9 is scheduled for November 14th

Should this be included in a minor release, 2.9.2 for example?


Also reopening as the PHPDoc block here also needs updating from:

​https://buddypress.trac.wordpress.org/browser/trunk/src/bp-blogs/bp-blogs-functions.php#L551
"Hooked to 'refresh_blog_details', which is notably used when editing a site under "Network Admin > Sites"."

#6 @boonebgorges
9 years ago

  • Milestone 3.0 → 2.9.2

Picky, picky :-D

2.9 branch is fine with me.

#7 @boonebgorges
9 years ago

In 11721:

After [11720], update bp_blogs_delete_url_blogmeta() description.

Props netweb.
See #7617.

#8 @boonebgorges
9 years ago

  • Resolution → fixed
  • Status reopened → closed

In 11722:

Update blog cache clearing to be compatible with WP 4.9+.

Merges [11720] and [11721] to the 2.9 branch.

Fixes #7617.

Note: See TracTickets for help on using tickets.