Skip to content

Commit 3701a62

Browse files
Merge pull request #1584 from wpeventmanager/3_1_40
3 1 40
2 parents 9866e70 + 1fb0208 commit 3701a62

File tree

58 files changed

+733
-648
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+733
-648
lines changed

admin/wp-event-manager-addons.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* Addons Page
3+
* Addons page of WP Event Manager.
44
*/
55

66
if(!defined('ABSPATH')){
@@ -10,7 +10,7 @@
1010
if(!class_exists('WP_Event_Manager_Addons')) :
1111

1212
/**
13-
* WP_Event_Manager_Addons Class
13+
* WP_Event_Manager_Addons Class.
1414
*/
1515
class WP_Event_Manager_Addons {
1616
/**

admin/wp-event-manager-admin.php

+14-14
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*/
1313
class WP_Event_Manager_Admin {
1414
/**
15-
* __construct function.
15+
* Constructor.
1616
*
1717
* @access public
1818
* @return void
@@ -46,7 +46,7 @@ public function __construct() {
4646
}
4747

4848
/**
49-
* upgrade_database_notice function.
49+
* Upgrade database notice.
5050
*
5151
* @access public
5252
* @return void
@@ -61,7 +61,7 @@ public function upgrade_database_notice() {
6161
}
6262

6363
/**
64-
* wpem_installation_notices function.
64+
* Installation notices of WP Event Manager.
6565
*
6666
* @access public
6767
* @return void
@@ -77,7 +77,7 @@ public function wpem_installation_notices() {
7777
}
7878

7979
/**
80-
* admin_enqueue_scripts function.
80+
* Here, all scripts are used for the WP Event Manager admin.
8181
*
8282
* @access public
8383
* @return void
@@ -87,7 +87,7 @@ public function admin_enqueue_scripts() {
8787
global $wp_scripts;
8888
$screen = get_current_screen();
8989

90-
// main frontend style
90+
// Main frontend style
9191
wp_enqueue_style('event_manager_admin_css', EVENT_MANAGER_PLUGIN_URL . '/assets/css/backend.min.css');
9292

9393
if(in_array($screen->id, apply_filters('event_manager_admin_screen_ids', array('edit-event_listing', 'event_listing', 'event_listing_page_event-manager-settings', 'event_listing_page_event-manager-addons', 'event_listing_page_event-manager-upgrade-database', 'edit-event_organizer', 'event_organizer', 'edit-event_venue', 'event_venue')))) {
@@ -125,7 +125,7 @@ public function admin_enqueue_scripts() {
125125
}
126126

127127
/**
128-
* admin_menu function.
128+
* Admin menu.
129129
*
130130
* @access public
131131
* @return void
@@ -144,7 +144,7 @@ public function admin_menu() {
144144
}
145145

146146
/**
147-
* Upgrade database page
147+
* Upgrade database page.
148148
*/
149149
public function upgrade_database() { ?>
150150
<div class="wrap wp_event_manager wp_event_manager_upgrade_database">
@@ -185,7 +185,7 @@ public function upgrade_database() { ?>
185185
}
186186

187187
/**
188-
* Upgrade database
188+
* Upgrade database.
189189
*/
190190
public function wpem_upgrade_database() {
191191

@@ -224,7 +224,7 @@ public function wpem_upgrade_database() {
224224
}
225225

226226
/**
227-
* migrate_organizer_from_event_meta
227+
* Migrate organizer from event meta.
228228
*/
229229
public function migrate_organizer_from_event_meta($event, $organizer_data) {
230230
$organizer_id = check_organizer_exist($organizer_data['organizer_email']);
@@ -256,7 +256,7 @@ public function migrate_organizer_from_event_meta($event, $organizer_data) {
256256
}
257257

258258
/**
259-
* banner_image_set_thumnail
259+
* Set banner image.
260260
*/
261261
public function banner_image_set_thumnail($event) {
262262
$banner = get_event_banner($event);
@@ -290,23 +290,23 @@ public function banner_image_set_thumnail($event) {
290290
}
291291

292292
/**
293-
* Output addons page
293+
* Output addons page.
294294
*/
295295
public function addons_page() {
296296
$addons = include 'wp-event-manager-addons.php';
297297
$addons->output();
298298
}
299299

300300
/**
301-
* Output shortcode page
301+
* Output shortcode page.
302302
*/
303303
public function shortcodes_page() {
304304
$shortcodes = new WP_Event_Manager_Shortcode_List();
305305
$shortcodes->shortcode_list();
306306
}
307307

308308
/**
309-
* Show Installtion setup wizard admin notice
309+
* Show Installtion setup wizard admin notice.
310310
*/
311311
public function run_setup_wizard_admin_notice() {
312312
$installation = get_option('wpem_installation', 0);
@@ -341,7 +341,7 @@ public function conditional_includes() {
341341
}
342342

343343
/**
344-
* Ran on WP admin_init hook
344+
* Ran on WP admin_init hook.
345345
*/
346346
public function admin_init() {
347347
if(!empty($_GET['event-manager-main-admin-dismiss'])) {

admin/wp-event-manager-cpt.php

+19-19
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
}
88

99
/**
10-
* WP_Event_Manager_CPT class.
10+
* Class of WP Event Manager custom post types.
1111
*/
1212
class WP_Event_Manager_CPT {
1313

1414
/**
15-
* __construct function.
15+
* Constructor.
1616
*
1717
* @access public
1818
* @return void
@@ -59,7 +59,7 @@ public function __construct() {
5959
}
6060

6161
/**
62-
* Edit bulk actions
62+
* Edit bulk actions.
6363
*/
6464
public function add_bulk_actions() {
6565
global $post_type, $wp_post_types;
@@ -78,7 +78,7 @@ public function add_bulk_actions() {
7878
}
7979

8080
/**
81-
* Do custom bulk actions
81+
* Do custom bulk actions.
8282
*/
8383
public function do_bulk_actions($redirect_url, $action, $post_ids) {
8484
$wp_list_table = _get_list_table('WP_Posts_List_Table');
@@ -123,7 +123,7 @@ public function do_bulk_actions($redirect_url, $action, $post_ids) {
123123
}
124124

125125
/**
126-
* Approve a single event
126+
* Approve a single event.
127127
*/
128128
public function approve_event() {
129129
if(!empty($_GET['approve_event']) && wp_verify_nonce($_REQUEST['_wpnonce'], 'approve_event') && current_user_can('publish_post',sanitize_text_field($_GET['approve_event']))) {
@@ -148,7 +148,7 @@ public function approve_event() {
148148
}
149149

150150
/**
151-
* Show a notice if we did a bulk action or approval
151+
* Show a notice if we did a bulk action or approval.
152152
*/
153153
public function approved_notice() {
154154
global $post_type, $pagenow;
@@ -168,7 +168,7 @@ public function approved_notice() {
168168
}
169169

170170
/**
171-
* Show a notice if we did a bulk action or approval
171+
* Show a notice if we did a bulk action or approval.
172172
*/
173173
public function expired_notice() {
174174
global $post_type, $pagenow;
@@ -189,7 +189,7 @@ public function expired_notice() {
189189
}
190190

191191
/**
192-
* Show category dropdown
192+
* Show category dropdown.
193193
*/
194194
public function events_by_category() {
195195
global $typenow, $wp_query;
@@ -219,7 +219,7 @@ public function events_by_category() {
219219
}
220220

221221
/**
222-
* Show Event type dropdown
222+
* Show Event type dropdown.
223223
*/
224224
public function events_by_event_type() {
225225
global $typenow, $wp_query;
@@ -264,7 +264,7 @@ public function enter_title_here($text, $post){
264264
}
265265

266266
/**
267-
* post_updated_messages function.
267+
* Updated messages of event post.
268268
*
269269
* @access public
270270
* @param mixed $messages
@@ -293,7 +293,7 @@ public function post_updated_messages($messages) {
293293
}
294294

295295
/**
296-
* columns function.
296+
* Add columns.
297297
*
298298
* @param array $columns
299299
* @return array
@@ -325,15 +325,15 @@ public function columns($columns){
325325
}
326326

327327
/**
328-
* This is required to make column responsive since WP 4.3
328+
* This is required to make column responsive since WP 4.3.
329329
*
330330
* @access public
331331
* @param string $column
332332
* @param string $screen
333333
* @return string
334334
*/
335335
public function primary_column($column, $screen) {
336-
// if we want to set the primary column for CPT
336+
// If we want to set the primary column for CPT
337337
if('edit-event_listing' === $screen) {
338338
$column = 'event_title';
339339
}
@@ -357,7 +357,7 @@ public function row_actions($actions) {
357357
}
358358

359359
/**
360-
* custom_columns function.
360+
* Add custom columns.
361361
*
362362
* @access public
363363
* @param mixed $column
@@ -499,13 +499,13 @@ public function custom_columns($column) {
499499
break;
500500
default :
501501
$value = get_post_meta($post->ID, $column, true);
502-
echo apply_filters('wpem_cpt_event_custom_column', $value, $column, $post);
502+
echo apply_filters('wpem_cpt_event_custom_column', wp_kses_post($value), $column, $post);
503503
break;
504504
}
505505
}
506506

507507
/**
508-
* sortable_columns function.
508+
* The table sortable columns.
509509
*
510510
* @access public
511511
* @param mixed $columns
@@ -524,7 +524,7 @@ public function sortable_columns($columns) {
524524
}
525525

526526
/**
527-
* sort_columns function.
527+
* Sort columns.
528528
*
529529
* @access public
530530
* @param mixed $vars
@@ -581,7 +581,7 @@ public function sort_columns($vars) {
581581
}
582582

583583
/**
584-
* organizer_columns function.
584+
* Columns of organizer.
585585
*
586586
* @access public
587587
* @param $columns
@@ -594,7 +594,7 @@ public function organizer_columns($columns) {
594594
}
595595

596596
/**
597-
* organizer_columns_data function.
597+
* Columns data of organizer.
598598
*
599599
* @access public
600600
* @param $column, $post_id

0 commit comments

Comments
 (0)