Any ordinance approved pursuant to Section 11163 shall be valid and enforceable even if approved, as required by Section 11162, by the board of supervisors and by the voters prior to the effective date of the act adding this section, but only if both of the following apply: