Beautifully, there is a problem with security or performance in the code below? I believe the constant is slightly more than using the variable, but I'm sure this profit will be negligible:
$ payment = get_option ('swd_billing_payment'); Define ('SWD_OWNER_CURRENCY', release ($ payment ['swd_owner_currency'])? $ Payment ['swd_owner_currency']: ''); Define ('SWD_OWNER_CURRENCY_SYMBOL', release ($ payment ['swd_owner_currency_symbol'])? $ Payment ['swd_owner_currency_symbol']: ''); Define ('SWD_OWNER_BANK', continue ($ payment ['swd_owner_bank'])? $ Payment ['swd_owner_bank']: ''); Define ('SWD_OWNER_ACCOUNT_NAME', continue ($ payment ['swd_owner_account_name'])? $ Payment ['swd_owner_account_name']: '');
Nearly 30 constants set for different settings in the database will end.
No comments:
Post a Comment