Changeset 13683 for sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-translation-events/includes/routes/event/create.php
- Timestamp:
- 05/09/2024 08:33:51 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-translation-events/includes/routes/event/create.php
r13529 r13683 17 17 exit; 18 18 } 19 $event_page_title = 'Create Event'; 20 $event_form_name = 'create_event'; 21 $css_show_url = 'hide-event-url'; 22 $event_id = null; 23 $event_title = ''; 24 $event_description = ''; 25 $event_url = ''; 26 $create_delete_button = true; 27 $visibility_delete_button = 'none'; 28 $event_timezone = null; 29 $event_start = new Event_Start_Date( date_i18n( 'Y - m - d H:i' ) ); 30 $event_end = new Event_End_Date( date_i18n( 'Y - m - d H:i' ) ); 19 20 if ( ! current_user_can( 'create_translation_event' ) ) { 21 $this->die_with_error( 'You do not have permission to create events.' ); 22 } 23 24 $event_page_title = 'Create Event'; 25 $event_form_name = 'create_event'; 26 $css_show_url = 'hide-event-url'; 27 $event_id = null; 28 $event_title = ''; 29 $event_description = ''; 30 $event_url = ''; 31 $create_trash_button = true; 32 $visibility_trash_button = 'none'; 33 $event_timezone = null; 34 $event_start = new Event_Start_Date( date_i18n( 'Y - m - d H:i' ) ); 35 $event_end = new Event_End_Date( date_i18n( 'Y - m - d H:i' ) ); 36 $event_slug = ''; 31 37 32 38 $this->tmpl( 'events-form', get_defined_vars() );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)