Skip to:
Content

BuddyPress.org

Opened 14 years ago

Closed 14 years ago

#2524 closed defect (bug) (fixed)

replace deprecated _c() with _x()

Reported by: cnorris23's profile cnorris23 Owned by:
Milestone: 1.2.6 Priority: normal
Severity: Version:
Component: Core Keywords: has-patch
Cc:

Description

The function _c() was deprecated in WP 2.9. It's recommended replacement is _x(). This helps cut down on WP_DEBUG notices.

Attachments (2)

2524.001.diff (891 bytes) - added by cnorris23 14 years ago.
2524.002.diff (897 bytes) - added by cnorris23 14 years ago.
fixes parameter issues with previous patch

Download all attachments as: .zip

Change History (9)

@cnorris23
14 years ago

#2 @johnjamesjacoby
14 years ago

Can you review this one? I don't think that _c and _x are exactly alike. They output differently from what I can tell.

#4 @cnorris23
14 years ago

I just found the issue. Props to r-a-y for making me look at the docs a little harder this time. They output the same, but the parameters have changed. _x() accepts four parameters, while _c() only accepted two. The issue here is that the $domain parameter got bumped to slot three in _x(), rather than slot two as it was in _c(). Slot two for _x() now allows for a context for translators. I'll get the patch updated later tonight.

@cnorris23
14 years ago

fixes parameter issues with previous patch

#5 @cnorris23
14 years ago

New patch should fix the output issues

#6 @johnjamesjacoby
14 years ago

Rock solid.

#7 @johnjamesjacoby
14 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [3152]) Fixes #2524 props cnorris23

Note: See TracTickets for help on using tickets.