Fix the bug in CRM_Mailing_BAO_Mailing::add() where the DAO was being instantiated instead of the BAO, as later the create() method expects it to be BAO having getRecipients() method towards the end.
Fix returning to a smart group search after adding an activity.

The previous fix for this did not include the civicrm/group/search url
in the list of possible urls to return to; thus smart groups were still
broken for this workflow.

Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
CRM-15454 - Enable multiple WordPress plugins to receive callbacks from CiviCRM hooks
CRM-15431 - CRM_Core_I18n - Use CRM_Core_DAO::escapeString for typical, runtime escaping

The call from CRM_Core_I18n breaks on systems that use "mysqli" without
"mysql." Such systems cannot be fully supported for development using
current dataflows (i.e.  "GenCode" won't work), but this patch may make them
usable for regular installations.
Log fatal errors for AJAX responses. CRM-15560

If you have a fatal error in an AJAX call, then the error doesn't get
logged to ConfigAndLog/Civicrm.*.log. This is because the logging stuff
happens after the call to CRM_Core_Page_AJAX::returnJsonResponse in
CRM_Core_Error::fatal and returnJsonRespons exits php.
CRM-15585 - Call pre hooks from api.setvalue
Add hook_civicrm_preProcess function.

This seems to be a generically useful spot to intercept the form object and
change things before the form is processed. Specifically, we need this hook
for integrating the Event Cart with the CiviDiscount extension.
Porting over of this patch from another Civi instance failed miserably.

This commit includes the full preProcess hook definition and fixes the syntax
error.
Update the hook invoke method to follow the CiviCRM 4.5 conventions for
invoke.
CRM-15595 - Individual sub-type custom fields don't appear in online event registration

https://issues.civicrm.org/jira/browse/CRM-15595
CRM-15611: fix send copy for case activity
Merge pull request #4576 from yashodha/CRM-15611

Tested, works fine
Merge pull request #4572 from atif-shaikh/CRM-15595

CRM-15595 - Individual sub-type custom fields don't appear in online eve...
CRM-15595 indentation fix

----------------------------------------
* CRM-15595: Individual sub-type custom fields don't appear in online event registration
  https://issues.civicrm.org/jira/browse/CRM-15595
Merge pull request #4577 from monishdeb/CRM-15595

CRM-15595 indentation fix
Encourage better scoping of js CRM vars with new addVars method
Merge pull request #4509 from colemanw/addVars

Encourage better scoping of js CRM vars with new addVars method
--CRM-10206, reverted back some changes that caused regression when creating multi value custom field value using api
--CRM-10206, added api test
Remove redundant help link