style guide fixes
Some checks failed
Some checks failed
This commit is contained in:
parent
66e06655c2
commit
f5df3102ad
1 changed files with 4 additions and 5 deletions
|
@ -283,13 +283,12 @@ abstract class Event extends Post {
|
||||||
*
|
*
|
||||||
* @param string $template The template string.
|
* @param string $template The template string.
|
||||||
* @param WP_Post|WP_Comment $wp_object The wp_object which was used to select the template.
|
* @param WP_Post|WP_Comment $wp_object The wp_object which was used to select the template.
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
public static function remove_ap_permalink_from_template( $template, $wp_object ) {
|
public static function remove_ap_permalink_from_template( $template, $wp_object ) {
|
||||||
|
|
||||||
// we could override the template here, to get out custom template from an option.
|
// we could override the template here, to get out custom template from an option.
|
||||||
|
|
||||||
if ( $wp_object->post_type === "event" ) {
|
if ( 'event' === $wp_object->post_type ) {
|
||||||
$template = str_replace( '[ap_permalink]', '', $template );
|
$template = str_replace( '[ap_permalink]', '', $template );
|
||||||
$template = str_replace( '[ap_permalink type="html"]', '', $template );
|
$template = str_replace( '[ap_permalink type="html"]', '', $template );
|
||||||
}
|
}
|
||||||
|
@ -345,7 +344,7 @@ abstract class Event extends Post {
|
||||||
// * [ ] add organizer.
|
// * [ ] add organizer.
|
||||||
// * [ ] do add Cancelled reason in the content.
|
// * [ ] do add Cancelled reason in the content.
|
||||||
|
|
||||||
// return parent::get_content();
|
// return parent::get_content();?
|
||||||
return $this->wp_object->post_content;
|
return $this->wp_object->post_content;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue