Merged in release/release-1.09 (pull request #10)
Release/release 1.09 * Install missing plugins * rs set to 1 * rebase pantheon for aws * rebase pantheon for aws * prod config change * prod config change * fix campaing issue * revert Approved-by: Jay Sharma
This commit is contained in:
committed by
Jay Sharma
parent
779393381f
commit
22f10a9edd
@@ -36,25 +36,25 @@ if ( ! class_exists( 'BSF_AIOSRS_Pro_Schema_Article' ) ) {
|
||||
$schema['mainEntityOfPage']['@id'] = esc_url( $data['main-entity'] );
|
||||
}
|
||||
|
||||
$schema['headline'] = ! empty( $data['name'] ) ? wp_strip_all_tags( (string) $data['name'] ) : null;
|
||||
$schema['headline'] = ! empty( $data['name'] ) ? wp_strip_all_tags( (string)$data['name'] ) : NULL;
|
||||
|
||||
if ( isset( $data['image'] ) && ! empty( $data['image'] ) ) {
|
||||
$schema['image'] = BSF_AIOSRS_Pro_Schema_Template::get_image_schema( $data['image'] );
|
||||
}
|
||||
|
||||
$schema['datePublished'] = ! empty( $data['published-date'] ) ? wp_strip_all_tags( (string) $data['published-date'] ) : null;
|
||||
$schema['datePublished'] = ! empty( $data['published-date'] ) ? wp_strip_all_tags( (string)$data['published-date'] ) : NULL;
|
||||
|
||||
$schema['dateModified'] = ! empty( $data['modified-date'] ) ? wp_strip_all_tags( (string) $data['modified-date'] ) : null;
|
||||
$schema['dateModified'] = ! empty( $data['modified-date'] ) ? wp_strip_all_tags( (string)$data['modified-date'] ) : NULL;
|
||||
|
||||
if ( ! empty( $data['author'] ) ) {
|
||||
$schema['author']['@type'] = 'Person';
|
||||
$schema['author']['name'] = wp_strip_all_tags( (string) $data['author'] );
|
||||
$schema['author']['url'] = ! empty( $data['author-url'] ) ? wp_strip_all_tags( (string) $data['author-url'] ) : null;
|
||||
$schema['author']['name'] = wp_strip_all_tags( (string)$data['author'] );
|
||||
$schema['author']['url'] = ! empty( $data['author-url'] ) ? wp_strip_all_tags( (string)$data['author-url'] ) : NULL;
|
||||
}
|
||||
|
||||
if ( ! empty( $data['orgnization-name'] ) ) {
|
||||
$schema['publisher']['@type'] = 'Organization';
|
||||
$schema['publisher']['name'] = wp_strip_all_tags( (string) $data['orgnization-name'] );
|
||||
$schema['publisher']['name'] = wp_strip_all_tags( (string)$data['orgnization-name'] );
|
||||
}
|
||||
|
||||
if ( isset( $data['site-logo'] ) && ! empty( $data['site-logo'] ) ) {
|
||||
@@ -80,7 +80,7 @@ if ( ! class_exists( 'BSF_AIOSRS_Pro_Schema_Article' ) ) {
|
||||
}
|
||||
}
|
||||
|
||||
$schema['description'] = ! empty( $data['description'] ) ? wp_strip_all_tags( (string) $data['description'] ) : null;
|
||||
$schema['description'] = ! empty( $data['description'] ) ? wp_strip_all_tags( (string)$data['description'] ) : NULL;
|
||||
|
||||
return apply_filters( 'wp_schema_pro_schema_article', $schema, $data, $post );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user