Changeset 700997
- Timestamp:
- 04/21/2013 08:37:29 AM (13 years ago)
- Location:
- live-stream-badger/trunk
- Files:
-
- 2 added
- 2 edited
-
apis/class-api-twitch.php (modified) (1 diff)
-
live-stream-badger-plugin.php (modified) (3 diffs)
-
shortcode (added)
-
shortcode/class-embedded-stream.php (added)
Legend:
- Unmodified
- Added
- Removed
-
live-stream-badger/trunk/apis/class-api-twitch.php
r700755 r700997 10 10 11 11 const FORMAT_CHANNEL_TO_URL = 'http://www.twitch.tv/%s'; 12 const REGEX_TWITCH_URL = '%http://(?:www)?\.twitch\.tv/([a-zA-Z0-9 \-\.]+)(?:/.)?%';12 const REGEX_TWITCH_URL = '%http://(?:www)?\.twitch\.tv/([a-zA-Z0-9_\-\.]+)(?:/.)?%'; 13 13 14 14 function get_api_identifier() { -
live-stream-badger/trunk/live-stream-badger-plugin.php
r700790 r700997 19 19 20 20 include_once ( LSB_PLUGIN_BASE_URL . '/stream-status-widget.php' ); 21 include_once ( LSB_PLUGIN_BASE_URL . '/shortcode/class-embedded-stream.php' ); 21 22 include_once ( LSB_PLUGIN_BASE_URL . '/scheduler/class-menu-item-updater.php' ); 22 23 … … 31 32 } 32 33 34 // Register shortcode 35 $embedded_stream_sc = new LSB_Embedded_Stream(); 36 add_shortcode( 'livestream', array( $embedded_stream_sc, 'do_shortcode' ) ); 37 33 38 // 34 39 // Register updater to start on activation/ stop on deactivation … … 39 44 register_activation_hook( __FILE__, 'lsb_activation' ); 40 45 function lsb_activation() { 41 wp_schedule_event(time(), 'lsb_five_minutes', 'lsb_update_all_stream_status');46 wp_schedule_event( time(), 'lsb_five_minutes', 'lsb_update_all_stream_status' ); 42 47 } 43 48
Note: See TracChangeset
for help on using the changeset viewer.