diff --git a/public_html/wp-content/plugins/wcpt/stubs/page/day-of-event.php b/public_html/wp-content/plugins/wcpt/stubs/page/day-of-event.php new file mode 100644 index 0000000000..ffb7057da0 --- /dev/null +++ b/public_html/wp-content/plugins/wcpt/stubs/page/day-of-event.php @@ -0,0 +1,18 @@ + +


+

+ + + +

+ + + +
+ + + +

+ + + diff --git a/public_html/wp-content/plugins/wcpt/wcpt-wordcamp/wordcamp-new-site.php b/public_html/wp-content/plugins/wcpt/wcpt-wordcamp/wordcamp-new-site.php index 7d6b9b17de..9c99ca3d0b 100644 --- a/public_html/wp-content/plugins/wcpt/wcpt-wordcamp/wordcamp-new-site.php +++ b/public_html/wp-content/plugins/wcpt/wcpt-wordcamp/wordcamp-new-site.php @@ -65,7 +65,7 @@ public function render_site_url_field( $key, $field_type, $object_name ) { Create site in network - (e.g., https://.city.wordcamp.org) + (e.g., https://.city.wordcamp.org) post_title ); if ( ! empty( $wordcamp->{'Start Date (YYYY-mm-dd)'} ) ) { - $blog_name .= date( ' Y', $wordcamp->{'Start Date (YYYY-mm-dd)'} ); + $blog_name .= wp_date( ' Y', $wordcamp->{'Start Date (YYYY-mm-dd)'} ); } $this->new_site_id = wp_insert_site( array( @@ -615,6 +615,16 @@ protected function get_stub_pages( $wordcamp, $meta ) { 'wc_page_offline' => 'yes', ), ), + + array( + 'title' => __( 'Day Of Event', 'wordcamporg' ), + 'content' => $this->get_stub_content( 'page', 'day-of-event', $wordcamp ), + 'status' => 'draft', + 'type' => 'page', + 'meta' => array( + '_wp_page_template' => 'day-of-event', // Set the page template. + ), + ), ); return $pages;