Changeset 1824682
- Timestamp:
- 02/19/2018 03:27:14 PM (8 years ago)
- Location:
- jumpout/trunk
- Files:
-
- 3 edited
-
class.php (modified) (2 diffs)
-
launch.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
jumpout/trunk/class.php
r1665806 r1824682 35 35 private 36 36 $settings_default, $jo_url, $popupfiles_domain, 37 $version = '3.2. 0';38 39 function JumpOut( )37 $version = '3.2.1'; 38 39 function JumpOut($is_admin = FALSE) 40 40 { 41 41 $this->settings_default = array( … … 60 60 61 61 // if last sync was more than 2 days ago, auto syncing 62 if ( time() - 60 * 60 * 24 > $this->settings['last_sync'] && NULL !== $this->settings['session_token']) {62 if ($is_admin && time() - 60 * 60 * 24 > $this->settings['last_sync'] && NULL !== $this->settings['session_token']) { 63 63 $this->syncScripts(); 64 64 } -
jumpout/trunk/launch.php
r1665806 r1824682 34 34 35 35 36 $JumpOut = new JumpOut();37 $GLOBALS['JumpOutClass'] = &$JumpOut;38 39 36 // Действуем в зависимости от того в админке мы или нет 40 37 if (is_admin()) { 38 39 $JumpOut = new JumpOut(TRUE); 40 $GLOBALS['JumpOutClass'] = &$JumpOut; 41 41 42 ob_start(); 42 43 add_action('admin_menu', array($JumpOut, 'createMenuItem')); 43 44 add_action('admin_init', array($JumpOut, 'addScripts')); 44 45 } else { 46 $JumpOut = new JumpOut(FALSE); 47 $GLOBALS['JumpOutClass'] = &$JumpOut; 45 48 //echo $_SERVER['REQUEST_URI']; 46 49 -
jumpout/trunk/readme.txt
r1665806 r1824682 3 3 Tags: popup, jumpout 4 4 Requires at least: 2.5.0 5 Tested up to: 4. 7.35 Tested up to: 4.9.4 6 6 Stable tag: trunk 7 7 License: GPLv2 or later … … 34 34 35 35 == Changelog == 36 = 3.2.1 = 37 * Sync works only if plugin accessed from admin panel 36 38 = 3.2.0 = 37 39 * OneCode can be inserted via textarea, if plugin fails sync
Note: See TracChangeset
for help on using the changeset viewer.