#3314 closed enhancement (fixed)
Global constant reduction initiative
Reported by: | johnjamesjacoby | Owned by: | |
---|---|---|---|
Milestone: | 1.5 | Priority: | normal |
Severity: | Version: | ||
Component: | Core | Keywords: | |
Cc: |
Description
This should be mostly find/replace - let's get the global constants under control and inside wrapper functions for 1.3.
Change History (13)
#7
@
13 years ago
(In [4634]) Introduces bp_xprofile_fullname_field_name() to avoid referencing BP_XPROFILE_FULLNAME_FIELD_NAME throughout BuddyPress. See #3314
#11
@
13 years ago
Forgot to mention this ticket in r4638, which cleans up references to BP_X_SLUG throughout.
#12
@
13 years ago
- Resolution set to fixed
- Status changed from new to closed
I believe I've cleaned up the egregious instances of the problem in question.
The only large class of constants remaining is BP_PLUGIN_URL and BP_PLUGIN_DIR. I haven't changed those, because it seems common enough practice in WP to use constants for this kind of thing. See ABSPATH, etc.
The remaining references to constants are generally singletons, and not really worth patching.
Marking this ticket as resolved, to clear the milestone a bit. If you have more specific instances you want to take care of, please reopen.
(In [4602]) * Swap BP_ROOT_BLOG const usage for new bp_get_root_blog_id() function
See #3313, #3314.