Changeset 1301011
- Timestamp:
- 12/05/2015 08:26:58 AM (10 years ago)
- Location:
- wp-farsi
- Files:
-
- 7 added
- 2 edited
-
tags/3.0 (added)
-
tags/3.0/index.php (added)
-
tags/3.0/license.html (added)
-
tags/3.0/pdate.php (added)
-
tags/3.0/readme.txt (added)
-
tags/3.0/wp-farsi.php (added)
-
tags/3.0/wpfa_admin.php (added)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/wp-farsi.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-farsi/trunk/readme.txt
r1300907 r1301011 44 44 45 45 == Changelog == 46 47 = 3.1 = 48 * Minor bug correct 46 49 47 50 = 3.0 = -
wp-farsi/trunk/wp-farsi.php
r1300907 r1301011 6 6 Author: Ali.Dbg 😉 7 7 Author URI: https://github.com/alidbg/wp-farsi 8 Version: 3. 08 Version: 3.1 9 9 License: GPLv3 (http://www.gnu.org/licenses/gpl-3.0.html) 10 10 */ … … 42 42 } 43 43 44 function exception_date(){ 45 if (is_feed() or defined('WXR_VERSION') or isset($autosave) or isset($lasttime) or isset($signup)) 46 return true; 44 45 function iss_uri($s = '') { 46 if (isset($_SERVER['REQUEST_URI']) and trim($s) !== '') { 47 $r = trim($_SERVER['REQUEST_URI']); 48 if ($r !== '' or $r !== '/') 49 if (strpos($r, $s) !== false) 50 return true; 51 } 52 return false; 53 } 54 55 function exception_date() { 56 if (iss_uri('/feed') or iss_uri('feed=') or defined('WXR_VERSION') or isset($autosave) or isset($lasttime) or isset($signup)) 57 return true; 47 58 else 48 59 return false; 49 60 } 50 61 51 function wpfa_date_i18n( $g, $f, $t) {52 if (exception_date())53 return date($f,$t);62 function wpfa_date_i18n($g, $f, $t) { 63 if (exception_date()) 64 return date($f, $t); 54 65 else 55 $d = wpfa_date($f, intval($t));66 $d = wpfa_date($f, intval($t)); 56 67 return WPFA_NUMS === "on" ? numbers_fa($d) : $d; 57 68 }
Note: See TracChangeset
for help on using the changeset viewer.