Exclude WordPress and WooCommerce variables from camel case conversion
[MAILPOET-1796]
This commit is contained in:
@@ -14,7 +14,7 @@ class MetaInformationManager {
|
||||
|
||||
if (isset($args['showAuthor']) && $args['showAuthor'] === $positionField) {
|
||||
$text[] = self::getPostAuthor(
|
||||
$post->postAuthor,
|
||||
$post->post_author, // phpcs:ignore Squiz.NamingConventions.ValidVariableName.NotCamelCaps
|
||||
$args['authorPrecededBy']
|
||||
);
|
||||
}
|
||||
@@ -22,7 +22,7 @@ class MetaInformationManager {
|
||||
if (isset($args['showCategories']) && $args['showCategories'] === $positionField) {
|
||||
$text[] = self::getPostCategories(
|
||||
$post->ID,
|
||||
$post->postType,
|
||||
$post->post_type, // phpcs:ignore Squiz.NamingConventions.ValidVariableName.NotCamelCaps
|
||||
$args['categoriesPrecededBy']
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user