Compare commits
No commits in common. "d3f16706f8886546a6370b02ed87207ce78ab461" and "4f61a1c97eb1cb71625fd2c520c21e8782c42bf9" have entirely different histories.
d3f16706f8
...
4f61a1c97e
2 changed files with 3 additions and 6 deletions
|
@ -126,8 +126,8 @@ abstract class Event extends Post {
|
|||
*
|
||||
* @return ?string
|
||||
*/
|
||||
protected function get_excerpt(): ?string {
|
||||
if ( $this->wp_object->post_excerpt ) {
|
||||
protected function extract_excerpt(): ?string {
|
||||
if ( $this->wp_object->excerpt ) {
|
||||
return $this->wp_object->post_excerpt;
|
||||
} else {
|
||||
return null;
|
||||
|
@ -353,7 +353,4 @@ abstract class Event extends Post {
|
|||
|
||||
}
|
||||
|
||||
protected function get_content() {
|
||||
return $this->wp_object->post_content;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -108,7 +108,7 @@ final class VS_Event_List extends Event_Transformer {
|
|||
if ( get_post_meta( $this->wp_object->ID, 'event-summary', true ) ) {
|
||||
return get_post_meta( $this->wp_object->ID, 'event-summary', true );
|
||||
} else {
|
||||
return parent::get_excerpt();
|
||||
return parent::extract_excerpt(); // todo naming not uniform.
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue