Use SP prefix for widget classes
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
class SportsPress_Widget_Event_Calendar extends WP_Widget {
|
||||
class SP_Widget_Event_Calendar extends WP_Widget {
|
||||
|
||||
function __construct() {
|
||||
$widget_ops = array('classname' => 'widget_calendar widget_sp_event_calendar', 'description' => __( 'A calendar of events.', 'sportspress' ) );
|
||||
@@ -60,4 +60,4 @@ class SportsPress_Widget_Event_Calendar extends WP_Widget {
|
||||
<?php
|
||||
}
|
||||
}
|
||||
add_action( 'widgets_init', create_function( '', 'return register_widget( "SportsPress_Widget_Event_Calendar" );' ) );
|
||||
add_action( 'widgets_init', create_function( '', 'return register_widget( "SP_Widget_Event_Calendar" );' ) );
|
||||
Reference in New Issue
Block a user