Changeset 4990 for trunk/wp-admin/admin-functions.php
- Timestamp:
- 03/07/2007 05:29:15 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/admin-functions.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-functions.php
r4987 r4990 1144 1144 $state = true; 1145 1145 foreach ( $markerdata as $n => $markerline ) { 1146 if ( strstr( $markerline, "# BEGIN {$marker}" ))1146 if (strpos($markerline, '# BEGIN ' . $marker) !== false) 1147 1147 $state = false; 1148 1148 if ( $state ) { … … 1152 1152 fwrite( $f, "{$markerline}" ); 1153 1153 } 1154 if ( strstr( $markerline, "# END {$marker}" )) {1154 if (strpos($markerline, '# END ' . $marker) !== false) { 1155 1155 fwrite( $f, "# BEGIN {$marker}\n" ); 1156 1156 if ( is_array( $insertion )) … … 1190 1190 $state = false; 1191 1191 foreach ( $markerdata as $markerline ) { 1192 if ( strstr( $markerline, "# END {$marker}" ))1192 if (strpos($markerline, '# END ' . $marker) !== false) 1193 1193 $state = false; 1194 1194 if ( $state ) 1195 1195 $result[] = $markerline; 1196 if ( strstr( $markerline, "# BEGIN {$marker}" ))1196 if (strpos($markerline, '# BEGIN ' . $marker) !== false) 1197 1197 $state = true; 1198 1198 } … … 1767 1767 '; 1768 1768 } 1769 if ( strstr( $_SERVER['HTTP_USER_AGENT'], 'MSIE' )) 1769 1770 if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false) 1770 1771 add_action( 'admin_footer', 'browse_happy' ); 1771 1772 … … 1928 1929 $size = strtolower( ini_get( 'upload_max_filesize' ) ); 1929 1930 $bytes = 0; 1930 if ( strstr( $size, 'k' ))1931 if (strpos($size, 'k') !== false) 1931 1932 $bytes = $size * 1024; 1932 if ( strstr( $size, 'm' ))1933 if (strpos($size, 'm') !== false) 1933 1934 $bytes = $size * 1024 * 1024; 1934 if ( strstr( $size, 'g' ))1935 if (strpos($size, 'g') !== false) 1935 1936 $bytes = $size * 1024 * 1024 * 1024; 1936 1937 ?>
Note: See TracChangeset
for help on using the changeset viewer.