Opened 15 years ago
Closed 15 years ago
#733 closed enhancement (fixed)
Localization Enhancement (Patch Included)
Reported by: | johnjamesjacoby | Owned by: | apeatling |
---|---|---|---|
Milestone: | Priority: | major | |
Severity: | Version: | 1.0 | |
Component: | Keywords: | has-patch | |
Cc: |
Description
This will reprioritize BuddyPress to play nicer with friends and other plugins. (priority 2 instead of 1)
bp_load_buddypress_textdomain function introduced and hooked into plugins_loaded to allow plugins the opportunity to play with language settings before loading BuddyPress translation files.
Attachments (1)
Change History (6)
#2
@
15 years ago
Just updated the patch. Added some things I could see using; filters, functions, etc...
Namely two functions, for getting the current member theme path and URL. These can later be used to get the remaining CSS files out of the plugins/buddypress directory and into the member themes.
This is important for theme authors because CSS isn't event driven like PHP/WordPress is, it cascades the style that is set before it. !important tags in CSS should be avoided, and having to know which style was already applied to an element in a core file previously just to reset that element and then restyle it again, is something foreign to most people (especially considering that all current WordPress themes keep *all* CSS in the theme folder. It further prevents novices from editing core files and having their CSS edits over-written by a core update later.
#3
@
15 years ago
It should be noted that in order for other core plugins to take advantage of the new functions, their respective "_add_css" functions must be patched to replace the current "BP_PLUGIN_URL + path/to/file" reference and instead use these functions.
I figure I'll let this suggestion stew in the event it gets vetoed. :)
Replacement bp-core.php (added filters and functions)