Use SP prefix for widget classes

This commit is contained in:
Brian Miyaji
2014-03-23 12:26:49 +11:00
parent c30b7eb664
commit 889f2b3538
5 changed files with 10 additions and 10 deletions

View File

@@ -1,5 +1,5 @@
<?php
class SportsPress_Widget_Event_List extends WP_Widget {
class SP_Widget_Event_List extends WP_Widget {
function __construct() {
$widget_ops = array('classname' => 'widget_sp_event_list', 'description' => __( 'A list of events.', 'sportspress' ) );
@@ -78,4 +78,4 @@ class SportsPress_Widget_Event_List extends WP_Widget {
<?php
}
}
add_action( 'widgets_init', create_function( '', 'return register_widget( "SportsPress_Widget_Event_List" );' ) );
add_action( 'widgets_init', create_function( '', 'return register_widget( "SP_Widget_Event_List" );' ) );