diff --git wp-admin/network/edit.php wp-admin/network/edit.php
index 1e06e49..1025eaa 100644
|
|
switch ( $_GET['action'] ) { |
110 | 110 | if ( is_email( $_POST['admin_email'] ) ) |
111 | 111 | update_site_option( 'admin_email', $_POST['admin_email'] ); |
112 | 112 | |
113 | | $illegal_names = split( ' ', $_POST['illegal_names'] ); |
| 113 | $illegal_names = explode( ' ', $_POST['illegal_names'] ); |
114 | 114 | foreach ( (array) $illegal_names as $name ) { |
115 | 115 | $name = trim( $name ); |
116 | 116 | if ( $name != '' ) |
… |
… |
switch ( $_GET['action'] ) { |
120 | 120 | |
121 | 121 | if ( $_POST['limited_email_domains'] != '' ) { |
122 | 122 | $limited_email_domains = str_replace( ' ', "\n", $_POST['limited_email_domains'] ); |
123 | | $limited_email_domains = split( "\n", stripslashes( $limited_email_domains ) ); |
| 123 | $limited_email_domains = explode( "\n", stripslashes( $limited_email_domains ) ); |
124 | 124 | $limited_email = array(); |
125 | 125 | foreach ( (array) $limited_email_domains as $domain ) { |
126 | 126 | $domain = trim( $domain ); |
… |
… |
switch ( $_GET['action'] ) { |
133 | 133 | } |
134 | 134 | |
135 | 135 | if ( $_POST['banned_email_domains'] != '' ) { |
136 | | $banned_email_domains = split( "\n", stripslashes( $_POST['banned_email_domains'] ) ); |
| 136 | $banned_email_domains = explode( "\n", stripslashes( $_POST['banned_email_domains'] ) ); |
137 | 137 | $banned = array(); |
138 | 138 | foreach ( (array) $banned_email_domains as $domain ) { |
139 | 139 | $domain = trim( $domain ); |
diff --git wp-admin/press-this.php wp-admin/press-this.php
index aa4eb47..3e5e1de 100644
|
|
var photostorage = false; |
381 | 381 | <?php |
382 | 382 | $content = ''; |
383 | 383 | if ( preg_match("/youtube\.com\/watch/i", $url) ) { |
384 | | list($domain, $video_id) = split("v=", $url); |
| 384 | list($domain, $video_id) = explode("v=", $url); |
385 | 385 | $video_id = esc_attr($video_id); |
386 | 386 | $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>'; |
387 | 387 | |
388 | 388 | } elseif ( preg_match("/vimeo\.com\/[0-9]+/i", $url) ) { |
389 | | list($domain, $video_id) = split(".com/", $url); |
| 389 | list($domain, $video_id) = explode(".com/", $url); |
390 | 390 | $video_id = esc_attr($video_id); |
391 | 391 | $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>'; |
392 | 392 | |
diff --git wp-includes/class-wp-xmlrpc-server.php wp-includes/class-wp-xmlrpc-server.php
index 5e9bbd4..40c5b38 100644
|
|
class wp_xmlrpc_server extends IXR_Server { |
2735 | 2735 | foreach ( (array) get_post_custom($post_ID) as $key => $val) { |
2736 | 2736 | if ($key == 'enclosure') { |
2737 | 2737 | foreach ( (array) $val as $enc ) { |
2738 | | $encdata = split("\n", $enc); |
| 2738 | $encdata = explode("\n", $enc); |
2739 | 2739 | $enclosure['url'] = trim(htmlspecialchars($encdata[0])); |
2740 | 2740 | $enclosure['length'] = (int) trim($encdata[1]); |
2741 | 2741 | $enclosure['type'] = trim($encdata[2]); |
diff --git wp-includes/feed.php wp-includes/feed.php
index b94e347..ec68221 100644
|
|
function atom_enclosure() { |
423 | 423 | foreach ( (array) get_post_custom() as $key => $val ) { |
424 | 424 | if ($key == 'enclosure') { |
425 | 425 | foreach ( (array) $val as $enc ) { |
426 | | $enclosure = split("\n", $enc); |
| 426 | $enclosure = explode("\n", $enc); |
427 | 427 | echo apply_filters('atom_enclosure', '<link href="' . trim(htmlspecialchars($enclosure[0])) . '" rel="enclosure" length="' . trim($enclosure[1]) . '" type="' . trim($enclosure[2]) . '" />' . "\n"); |
428 | 428 | } |
429 | 429 | } |
diff --git wp-includes/kses.php wp-includes/kses.php
index aea7aa8..afdea53 100644
|
|
function safecss_filter_attr( $css, $deprecated = '' ) { |
1404 | 1404 | if ( strpos( $css_item, ':' ) === false ) { |
1405 | 1405 | $found = true; |
1406 | 1406 | } else { |
1407 | | $parts = split( ':', $css_item ); |
| 1407 | $parts = explode( ':', $css_item ); |
1408 | 1408 | if ( in_array( trim( $parts[0] ), $allowed_attr ) ) |
1409 | 1409 | $found = true; |
1410 | 1410 | } |
diff --git wp-includes/pluggable.php wp-includes/pluggable.php
index 4082340..a8d8a7b 100644
|
|
function wp_text_diff( $left_string, $right_string, $args = null ) { |
1740 | 1740 | $left_string = normalize_whitespace($left_string); |
1741 | 1741 | $right_string = normalize_whitespace($right_string); |
1742 | 1742 | |
1743 | | $left_lines = split("\n", $left_string); |
1744 | | $right_lines = split("\n", $right_string); |
| 1743 | $left_lines = explode("\n", $left_string); |
| 1744 | $right_lines = explode("\n", $right_string); |
1745 | 1745 | |
1746 | 1746 | $text_diff = new Text_Diff($left_lines, $right_lines); |
1747 | 1747 | $renderer = new WP_Text_Diff_Renderer_Table(); |
diff --git wp-includes/post.php wp-includes/post.php
index 3c3759e..e5dd986 100644
|
|
function get_enclosed($post_id) { |
2996 | 2996 | if ( 'enclosure' != $key || !is_array( $val ) ) |
2997 | 2997 | continue; |
2998 | 2998 | foreach( $val as $enc ) { |
2999 | | $enclosure = split( "\n", $enc ); |
| 2999 | $enclosure = explode( "\n", $enc ); |
3000 | 3000 | $pung[] = trim( $enclosure[ 0 ] ); |
3001 | 3001 | } |
3002 | 3002 | } |