Changeset 4990 for trunk/wp-includes/query.php
- Timestamp:
- 03/07/2007 05:29:15 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/query.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r4956 r4990 30 30 global $wp_query; 31 31 32 return ( $wp_query->is_admin || strstr($_SERVER['REQUEST_URI'], 'wp-admin/'));32 return ($wp_query->is_admin || (strpos($_SERVER['REQUEST_URI'], 'wp-admin/') !== false)); 33 33 } 34 34 … … 511 511 $this->is_category = false; 512 512 } else { 513 if (str istr($qv['cat'],'-')) {513 if (strpos($qv['cat'], '-') !== false) { 514 514 $this->is_category = false; 515 515 } else { … … 558 558 } 559 559 560 if (str str($_SERVER['PHP_SELF'], 'wp-admin/')) {560 if (strpos($_SERVER['PHP_SELF'], 'wp-admin/') !== false) { 561 561 $this->is_admin = true; 562 562 } … … 851 851 foreach ( $cat_array as $cat ) { 852 852 $cat = intval($cat); 853 $in = strstr($cat, '-') ? false : true;853 $in = (strpos($cat, '-') !== false) ? false : true; 854 854 $cat = trim($cat, '-'); 855 855 if ( $in ) … … 919 919 $q['author'] = ''.urldecode($q['author']).''; 920 920 $q['author'] = addslashes_gpc($q['author']); 921 if (str istr($q['author'], '-')) {921 if (strpos($q['author'], '-') !== false) { 922 922 $eq = '!='; 923 923 $andor = 'AND'; … … 939 939 940 940 if ('' != $q['author_name']) { 941 if (str istr($q['author_name'],'/')) {941 if (strpos($q['author_name'], '/') !== false) { 942 942 $q['author_name'] = explode('/',$q['author_name']); 943 943 if ($q['author_name'][count($q['author_name'])-1]) {
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)