Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Major
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.3.0
-
Fix Version/s: 4.5
-
Component/s: WordPress Integration
-
Labels:None
-
Documentation Required?:None
Description
Initial report here: http://forum.civicrm.org/index.php/topic,30293
Whenever a CRM page is called from a non-admin url (including shortcodes and direct links to e.g. contribution pages) the code to generate that page is only called after the html-header has already been printed.
So it will not be able to add scripts, styles, etc. to the header.
Reading the code, this seems to be a known issue. Shortcodes are only evaluated during rendering of the page body. We would need to pre-process them and somehow buffer the output.