changed extract_excerpt to get_excerpt
This commit is contained in:
parent
4f61a1c97e
commit
b4d3a7efa0
2 changed files with 3 additions and 3 deletions
|
@ -126,8 +126,8 @@ abstract class Event extends Post {
|
||||||
*
|
*
|
||||||
* @return ?string
|
* @return ?string
|
||||||
*/
|
*/
|
||||||
protected function extract_excerpt(): ?string {
|
protected function get_excerpt(): ?string {
|
||||||
if ( $this->wp_object->excerpt ) {
|
if ( $this->wp_object->post_excerpt ) {
|
||||||
return $this->wp_object->post_excerpt;
|
return $this->wp_object->post_excerpt;
|
||||||
} else {
|
} else {
|
||||||
return null;
|
return null;
|
||||||
|
|
|
@ -108,7 +108,7 @@ final class VS_Event_List extends Event_Transformer {
|
||||||
if ( get_post_meta( $this->wp_object->ID, 'event-summary', true ) ) {
|
if ( get_post_meta( $this->wp_object->ID, 'event-summary', true ) ) {
|
||||||
return get_post_meta( $this->wp_object->ID, 'event-summary', true );
|
return get_post_meta( $this->wp_object->ID, 'event-summary', true );
|
||||||
} else {
|
} else {
|
||||||
return parent::extract_excerpt(); // todo naming not uniform.
|
return parent::get_excerpt();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue