|
@@ 189-195 (lines=7) @@
|
| 186 |
|
|
| 187 |
|
$old_class_instance = new stdClass(); |
| 188 |
|
|
| 189 |
|
foreach ( $old_default_classnames as $classname ) { |
| 190 |
|
$filter_ref = 'FHEE__' . $classname . '___create_new_templates___templates'; |
| 191 |
|
if ( has_filter( $filter_ref ) ) { |
| 192 |
|
EE_Error::doing_it_wrong( $filter_ref, __('This filter is deprecated. It *may* work as an attempt to build in backwards compatibility. However, it is recommended to use the new filter provided which is "FHEE__EE_Template_Pack___get_templates__templates" found in the EE_Messages_Template_Pack class.', 'event_espresso'), '4.5.0', E_USER_DEPRECATED ); |
| 193 |
|
} |
| 194 |
|
$templates = apply_filters( $filter_ref, $templates, $old_class_instance ); |
| 195 |
|
} |
| 196 |
|
|
| 197 |
|
return $templates; |
| 198 |
|
} |
|
@@ 266-272 (lines=7) @@
|
| 263 |
|
'EE_Messages_Base' => $message_type |
| 264 |
|
); |
| 265 |
|
|
| 266 |
|
foreach ( $classnames_to_try as $classname => $obj ) { |
| 267 |
|
$filter_ref = 'FHEE__' . $classname . '__get_default_field_content'; |
| 268 |
|
if ( has_filter( $filter_ref ) ) { |
| 269 |
|
EE_Error::doing_it_wrong( $filter_ref, __('This filter is deprecated. It *may* work as an attempt to build in backwards compatibility. However, it is recommended to use the new filter provided which is "FHEE__EE_Messages_Template_Pack__get_specific_template__contents" found in the EE_Messages_Template_Pack class.', 'event_espresso'), '4.5.0', E_USER_DEPRECATED ); |
| 270 |
|
} |
| 271 |
|
$contents = apply_filters( $filter_ref, $contents, $obj ); |
| 272 |
|
} |
| 273 |
|
|
| 274 |
|
return $contents; |
| 275 |
|
} |