Exclude WordPress and WooCommerce variables from camel case conversion

[MAILPOET-1796]
This commit is contained in:
Jan Jakeš
2020-01-07 17:23:51 +01:00
committed by Jan Jakeš
parent fbcaeaadbc
commit 685b4885c0
25 changed files with 111 additions and 109 deletions

View File

@@ -182,7 +182,7 @@ class Populator {
$page = null;
if (!empty($pages)) {
$page = array_shift($pages);
if (strpos($page->postContent, '[mailpoet_page]') === false) {
if (strpos($page->post_content, '[mailpoet_page]') === false) { // phpcs:ignore Squiz.NamingConventions.ValidVariableName.NotCamelCaps
$page = null;
}
}
@@ -220,8 +220,8 @@ class Populator {
// set default sender info based on current user
$sender = [
'name' => $currentUser->displayName,
'address' => $currentUser->userEmail,
'name' => $currentUser->display_name, // phpcs:ignore Squiz.NamingConventions.ValidVariableName.NotCamelCaps
'address' => $currentUser->user_email, // phpcs:ignore Squiz.NamingConventions.ValidVariableName.NotCamelCaps
];
// set default from name & address