Changeset 19726
- Timestamp:
- 01/09/2012 09:20:51 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/network/settings.php
r19593 r19726 52 52 update_site_option( 'admin_email', $_POST['admin_email'] ); 53 53 54 $illegal_names = split( ' ', $_POST['illegal_names'] );54 $illegal_names = explode( ' ', $_POST['illegal_names'] ); 55 55 foreach ( (array) $illegal_names as $name ) { 56 56 $name = trim( $name ); 57 57 if ( $name != '' ) 58 58 $names[] = trim( $name ); 59 59 } 60 60 update_site_option( 'illegal_names', $names ); 61 61 62 62 if ( $_POST['limited_email_domains'] != '' ) { 63 63 $limited_email_domains = str_replace( ' ', "\n", $_POST['limited_email_domains'] ); 64 $limited_email_domains = split( "\n", stripslashes( $limited_email_domains ) );64 $limited_email_domains = explode( "\n", stripslashes( $limited_email_domains ) ); 65 65 $limited_email = array(); 66 66 foreach ( (array) $limited_email_domains as $domain ) { … … 71 71 update_site_option( 'limited_email_domains', $limited_email ); 72 72 } else { 73 73 update_site_option( 'limited_email_domains', '' ); 74 74 } 75 75 76 76 if ( $_POST['banned_email_domains'] != '' ) { 77 $banned_email_domains = split( "\n", stripslashes( $_POST['banned_email_domains'] ) );77 $banned_email_domains = explode( "\n", stripslashes( $_POST['banned_email_domains'] ) ); 78 78 $banned = array(); 79 79 foreach ( (array) $banned_email_domains as $domain ) { -
trunk/wp-admin/press-this.php
r19671 r19726 352 352 $content = ''; 353 353 if ( preg_match("/youtube\.com\/watch/i", $url) ) { 354 list($domain, $video_id) = split("v=", $url);354 list($domain, $video_id) = explode("v=", $url); 355 355 $video_id = esc_attr($video_id); 356 356 $content = '<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/' . $video_id . '"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/' . $video_id . '" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>'; 357 357 358 358 } elseif ( preg_match("/vimeo\.com\/[0-9]+/i", $url) ) { 359 list($domain, $video_id) = split(".com/", $url);359 list($domain, $video_id) = explode(".com/", $url); 360 360 $video_id = esc_attr($video_id); 361 361 $content = '<object width="400" height="225"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://www.vimeo.com/moogaloop.swf?clip_id=' . $video_id . '&server=www.vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1" /> <embed src="http://www.vimeo.com/moogaloop.swf?clip_id=' . $video_id . '&server=www.vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="225"></embed></object>'; -
trunk/wp-includes/class-wp-xmlrpc-server.php
r19712 r19726 2833 2833 if ($key == 'enclosure') { 2834 2834 foreach ( (array) $val as $enc ) { 2835 $encdata = split("\n", $enc);2835 $encdata = explode("\n", $enc); 2836 2836 $enclosure['url'] = trim(htmlspecialchars($encdata[0])); 2837 2837 $enclosure['length'] = (int) trim($encdata[1]); -
trunk/wp-includes/feed.php
r19598 r19726 425 425 if ($key == 'enclosure') { 426 426 foreach ( (array) $val as $enc ) { 427 $enclosure = split("\n", $enc);427 $enclosure = explode("\n", $enc); 428 428 echo apply_filters('atom_enclosure', '<link href="' . trim(htmlspecialchars($enclosure[0])) . '" rel="enclosure" length="' . trim($enclosure[1]) . '" type="' . trim($enclosure[2]) . '" />' . "\n"); 429 429 } -
trunk/wp-includes/kses.php
r19687 r19726 1402 1402 $found = true; 1403 1403 } else { 1404 $parts = split( ':', $css_item );1404 $parts = explode( ':', $css_item ); 1405 1405 if ( in_array( trim( $parts[0] ), $allowed_attr ) ) 1406 1406 $found = true; -
trunk/wp-includes/pluggable.php
r19725 r19726 1707 1707 $right_string = normalize_whitespace($right_string); 1708 1708 1709 $left_lines = split("\n", $left_string);1710 $right_lines = split("\n", $right_string);1709 $left_lines = explode("\n", $left_string); 1710 $right_lines = explode("\n", $right_string); 1711 1711 1712 1712 $text_diff = new Text_Diff($left_lines, $right_lines); -
trunk/wp-includes/post.php
r19712 r19726 3025 3025 continue; 3026 3026 foreach( $val as $enc ) { 3027 $enclosure = split( "\n", $enc );3027 $enclosure = explode( "\n", $enc ); 3028 3028 $pung[] = trim( $enclosure[ 0 ] ); 3029 3029 }
Note: See TracChangeset
for help on using the changeset viewer.