/var/www/wordpress/wp-admin/includes/admin.php
/var/www/wordpress/wp-admin/includes/bookmark.php
/var/www/wordpress/wp-admin/includes/class-ftp-pure.php
/var/www/wordpress/wp-admin/includes/class-ftp-sockets.php
/var/www/wordpress/wp-admin/includes/class-ftp.php
/var/www/wordpress/wp-admin/includes/class-pclzip.php
/var/www/wordpress/wp-admin/includes/class-wp-filesystem-base.php
/var/www/wordpress/wp-admin/includes/class-wp-filesystem-direct.php
/var/www/wordpress/wp-admin/includes/class-wp-filesystem-ftpext.php
/var/www/wordpress/wp-admin/includes/class-wp-filesystem-ftpsockets.php
/var/www/wordpress/wp-admin/includes/class-wp-filesystem-ssh2.php
/var/www/wordpress/wp-admin/includes/class-wp-importer.php
/var/www/wordpress/wp-admin/includes/class-wp-upgrader.php
/var/www/wordpress/wp-admin/includes/comment.php
/var/www/wordpress/wp-admin/includes/continents-cities.php
/var/www/wordpress/wp-admin/includes/dashboard.php
/var/www/wordpress/wp-admin/includes/deprecated.php
/var/www/wordpress/wp-admin/includes/export.php
/var/www/wordpress/wp-admin/includes/file.php
/var/www/wordpress/wp-admin/includes/image-edit.php
/var/www/wordpress/wp-admin/includes/image.php
/var/www/wordpress/wp-admin/includes/import.php
/var/www/wordpress/wp-admin/includes/manifest.php
/var/www/wordpress/wp-admin/includes/media.php
#CodeDescriptions
1<?php
2/**
3 * WordPress Administration Media API.
4 *
5 * @package WordPress
6 * @subpackage Administration
7 */
8
9/**
10 * {@internal Missing Short Description}}
11 *
12 * @since unknown
13 *
14 * @return unknown
15 */
16function media_upload_tabs() {
17 $_default_tabs = array(
18 'type' => __('From Computer'), // handler action suffix => tab text
19 'type_url' => __('From URL'),
20 'gallery' => __('Gallery'),
21 'library' => __('Media Library')
22 );
23
24 return apply_filters('media_upload_tabs', $_default_tabs);
25}
26
27/**
28 * {@internal Missing Short Description}}
29 *
30 * @since unknown
31 *
32 * @param unknown_type $tabs
33 * @return unknown
34 */
35function update_gallery_tab($tabs) {
36 global $wpdb;
37
38 if ( !isset($_REQUEST['post_id']) ) {
39 unset($tabs['gallery']);
40 return $tabs;
41 }
42
43 $post_id = intval($_REQUEST['post_id']);
44
45 if ( $post_id )
46 $attachments = intval( $wpdb->get_var( $wpdb->prepare( "SELECT count(*) FROM $wpdb->posts WHERE post_type = 'attachment' AND post_status != 'trash' AND post_parent = %d", $post_id ) ) );
47
48 if ( empty($attachments) ) {
49 unset($tabs['gallery']);
50 return $tabs;
51 }
52
53 $tabs['gallery'] = sprintf(__('Gallery (%s)'), "<span id='attachments-count'>$attachments</span>");
54
55 return $tabs;
56}
57add_filter('media_upload_tabs', 'update_gallery_tab');
58
59/**
60 * {@internal Missing Short Description}}
61 *
62 * @since unknown
63 */
64function the_media_upload_tabs() {
65 global $redir_tab;
66 $tabs = media_upload_tabs();
67
68 if ( !empty($tabs) ) {
69 echo "<ul id='sidemenu'>\n";
70 if ( isset($redir_tab) && array_key_exists($redir_tab, $tabs) )
71 $current = $redir_tab;
72 elseif ( isset($_GET['tab']) && array_key_exists($_GET['tab'], $tabs) )
73 $current = $_GET['tab'];
74 else
75 $current = apply_filters('media_upload_default_tab', 'type');
76
77 foreach ( $tabs as $callback => $text ) {
78 $class = '';
79 if ( $current == $callback )
80 $class = " class='current'";
81 $href = add_query_arg(array('tab'=>$callback, 's'=>false, 'paged'=>false, 'post_mime_type'=>false, 'm'=>false));
82 $link = "<a href='" . esc_url($href) . "'$class>$text</a>";
83 echo "\t<li id='" . esc_attr("tab-$callback") . "'>$link</li>\n";
84 }
85 echo "</ul>\n";
86 }
87}
88
89/**
90 * {@internal Missing Short Description}}
91 *
92 * @since unknown
93 *
94 * @param unknown_type $id
95 * @param unknown_type $alt
96 * @param unknown_type $title
97 * @param unknown_type $align
98 * @param unknown_type $url
99 * @param unknown_type $rel
100 * @param unknown_type $size
101 * @return unknown
102 */
103function get_image_send_to_editor($id, $caption, $title, $align, $url='', $rel = false, $size='medium', $alt = '') {
104
105 $html = get_image_tag($id, $alt, $title, $align, $size);
106
107 $rel = $rel ? ' rel="attachment wp-att-' . esc_attr($id).'"' : '';
108
109 if ( $url )
110 $html = '<a href="' . esc_attr($url) . "\"$rel>$html</a>";
111
112 $html = apply_filters( 'image_send_to_editor', $html, $id, $caption, $title, $align, $url, $size, $alt );
113
114 return $html;
115}
116
117/**
118 * {@internal Missing Short Description}}
119 *
120 * @since unknown
121 *
122 * @param unknown_type $html
123 * @param unknown_type $id
124 * @param unknown_type $alt
125 * @param unknown_type $title
126 * @param unknown_type $align
127 * @param unknown_type $url
128 * @param unknown_type $size
129 * @return unknown
130 */
131function image_add_caption( $html, $id, $caption, $title, $align, $url, $size, $alt = '' ) {
132
133 if ( empty($caption) || apply_filters( 'disable_captions', '' ) )
134 return $html;
135
136 $id = ( 0 < (int) $id ) ? 'attachment_' . $id : '';
137
138 if ( ! preg_match( '/width="([0-9]+)/', $html, $matches ) )
139 return $html;
140
141 $width = $matches[1];
142
143 $html = preg_replace( '/(class=["\'][^\'"]*)align(none|left|right|center)\s?/', '$1', $html );
144 if ( empty($align) )
145 $align = 'none';
146
147 $shcode = '[caption id="' . $id . '" align="align' . $align
148 . '" width="' . $width . '" caption="' . addslashes($caption) . '"]' . $html . '[/caption]';
149
150 return apply_filters( 'image_add_caption_shortcode', $shcode, $html );
151}
152add_filter( 'image_send_to_editor', 'image_add_caption', 20, 8 );
153
154/**
155 * {@internal Missing Short Description}}
156 *
157 * @since unknown
158 *
159 * @param unknown_type $html
160 */
161function media_send_to_editor($html) {
162?>
163<script type="text/javascript">
164/* <![CDATA[ */
165var win = window.dialogArguments || opener || parent || top;
166win.send_to_editor('<?php echo addslashes($html); ?>');
167/* ]]> */
168</script>
169<?php
170 exit;
171}
172
173/**
174 * {@internal Missing Short Description}}
175 *
176 * This handles the file upload POST itself, creating the attachment post.
177 *
178 * @since unknown
179 *
180 * @param string $file_id Index into the {@link $_FILES} array of the upload
181 * @param int $post_id The post ID the media is associated with
182 * @param array $post_data allows you to overwrite some of the attachment
183 * @param array $overrides allows you to override the {@link wp_handle_upload()} behavior
184 * @return int the ID of the attachment
185 */
186function media_handle_upload($file_id, $post_id, $post_data = array(), $overrides = array( 'test_form' => false )) {
187
188 $time = current_time('mysql');
189 if ( $post = get_post($post_id) ) {
190 if ( substr( $post->post_date, 0, 4 ) > 0 )
191 $time = $post->post_date;
192 }
193
194 $name = $_FILES[$file_id]['name'];
195 $file = wp_handle_upload($_FILES[$file_id], $overrides, $time);
196
197 if ( isset($file['error']) )
198 return new WP_Error( 'upload_error', $file['error'] );
199
200 $name_parts = pathinfo($name);
201 $name = trim( substr( $name, 0, -(1 + strlen($name_parts['extension'])) ) );
202
203 $url = $file['url'];
204 $type = $file['type'];
205 $file = $file['file'];//Arbitrary file disclosing
206 $title = $name;
207 $content = '';
208
209 // use image exif/iptc data for title and caption defaults if possible
210 if ( $image_meta = @wp_read_image_metadata($file) ) {
211 if ( trim( $image_meta['title'] ) && ! is_numeric( sanitize_title( $image_meta['title'] ) ) )
212 $title = $image_meta['title'];
213 if ( trim( $image_meta['caption'] ) )
214 $content = $image_meta['caption'];
215 }
216
217 // Construct the attachment array
218 $attachment = array_merge( array(
219 'post_mime_type' => $type,
220 'guid' => $url,
221 'post_parent' => $post_id,
222 'post_title' => $title,
223 'post_content' => $content,
224 ), $post_data );
225
226 // Save the data
227 $id = wp_insert_attachment($attachment, $file, $post_id);//Arbitrary file disclosing
228 if ( !is_wp_error($id) ) {
229 wp_update_attachment_metadata( $id, wp_generate_attachment_metadata( $id, $file ) );
230 }
231
232 return $id;
233
234}
235
236/**
237 * {@internal Missing Short Description}}
238 *
239 * @since unknown
240 *
241 * @param unknown_type $file_array
242 * @param unknown_type $post_id
243 * @param unknown_type $desc
244 * @param unknown_type $post_data
245 * @return unknown
246 */
247function media_handle_sideload($file_array, $post_id, $desc = null, $post_data = array()) {
248 $overrides = array('test_form'=>false);
249
250 $file = wp_handle_sideload($file_array, $overrides);
251 if ( isset($file['error']) )
252 return new WP_Error( 'upload_error', $file['error'] );
253
254 $url = $file['url'];
255 $type = $file['type'];
256 $file = $file['file'];//Arbitrary file disclosing
257 $title = preg_replace('/\.[^.]+$/', '', basename($file));
258 $content = '';
259
260 // use image exif/iptc data for title and caption defaults if possible
261 if ( $image_meta = @wp_read_image_metadata($file) ) {
262 if ( trim( $image_meta['title'] ) && ! is_numeric( sanitize_title( $image_meta['title'] ) ) )
263 $title = $image_meta['title'];
264 if ( trim( $image_meta['caption'] ) )
265 $content = $image_meta['caption'];
266 }
267
268 $title = @$desc;
269
270 // Construct the attachment array
271 $attachment = array_merge( array(
272 'post_mime_type' => $type,
273 'guid' => $url,
274 'post_parent' => $post_id,
275 'post_title' => $title,
276 'post_content' => $content,
277 ), $post_data );
278
279 // Save the attachment metadata
280 $id = wp_insert_attachment($attachment, $file, $post_id);//Arbitrary file disclosing
281 if ( !is_wp_error($id) ) {
282 wp_update_attachment_metadata( $id, wp_generate_attachment_metadata( $id, $file ) );
283 return $url;
284 }
285 return $id;
286}
287
288/**
289 * {@internal Missing Short Description}}
290 *
291 * Wrap iframe content (produced by $content_func) in a doctype, html head/body
292 * etc any additional function args will be passed to content_func.
293 *
294 * @since unknown
295 *
296 * @param unknown_type $content_func
297 */
298function wp_iframe($content_func /* ... */) {
299?>
300<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
301<html xmlns="http://www.w3.org/1999/xhtml" <?php do_action('admin_xml_ns'); ?> <?php language_attributes(); ?>>
302<head>
303<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
304<title><?php bloginfo('name') ?> › <?php _e('Uploads'); ?> — <?php _e('WordPress'); ?></title>
305<?php
306wp_enqueue_style( 'global' );
307wp_enqueue_style( 'wp-admin' );
308wp_enqueue_style( 'colors' );
309// Check callback name for 'media'
310if ( ( is_array( $content_func ) && ! empty( $content_func[1] ) && 0 === strpos( (string) $content_func[1], 'media' ) ) || 0 === strpos( $content_func, 'media' ) )
311 wp_enqueue_style( 'media' );
312wp_enqueue_style( 'ie' );
313?>
314<script type="text/javascript">
315//<![CDATA[
316addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
317var userSettings = {'url':'<?php echo SITECOOKIEPATH; ?>','uid':'<?php if ( ! isset($current_user) ) $current_user = wp_get_current_user(); echo $current_user->ID; ?>','time':'<?php echo time(); ?>'};//Cross Site Scripting
318var ajaxurl = '<?php echo admin_url('admin-ajax.php'); ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup';
319//]]>
320</script>
321<?php
322do_action('admin_enqueue_scripts', 'media-upload-popup');
323do_action('admin_print_styles-media-upload-popup');
324do_action('admin_print_styles');
325do_action('admin_print_scripts-media-upload-popup');
326do_action('admin_print_scripts');
327do_action('admin_head-media-upload-popup');
328do_action('admin_head');
329
330if ( is_string($content_func) )
331 do_action( "admin_head_{$content_func}" );
332?>
333</head>
334<body<?php if ( isset($GLOBALS['body_id']) ) echo ' id="' . $GLOBALS['body_id'] . '"'; ?>>
335<?php
336 $args = func_get_args();
337 $args = array_slice($args, 1);
338 call_user_func_array($content_func, $args);
339
340 do_action('admin_print_footer_scripts');
341?>
342<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
343</body>
344</html>
345<?php
346}
347
348/**
349 * {@internal Missing Short Description}}
350 *
351 * @since unknown
352 */
353function media_buttons() {
354 $do_image = $do_audio = $do_video = true;
355 if ( is_multisite() ) {
356 $media_buttons = get_site_option( 'mu_media_buttons' );
357 if ( empty($media_buttons['image']) )
358 $do_image = false;
359 if ( empty($media_buttons['audio']) )
360 $do_audio = false;
361 if ( empty($media_buttons['video']) )
362 $do_video = false;
363 }
364 $out = '';
365
366 if ( $do_image )
367 $out .= _media_button(__('Add an Image'), 'images/media-button-image.gif?ver=20100531', 'image');
368 if ( $do_video )
369 $out .= _media_button(__('Add Video'), 'images/media-button-video.gif?ver=20100531', 'video');
370 if ( $do_audio )
371 $out .= _media_button(__('Add Audio'), 'images/media-button-music.gif?ver=20100531', 'audio');
372
373 $out .= _media_button(__('Add Media'), 'images/media-button-other.gif?ver=20100531', 'media');
374
375 $context = apply_filters('media_buttons_context', __('Upload/Insert %s'));
376
377 printf($context, $out);//Cross Site Scripting
378}
379add_action( 'media_buttons', 'media_buttons' );
380
381function _media_button($title, $icon, $type) {
382 return "<a href='" . esc_url( get_upload_iframe_src($type) ) . "' id='add_$type' class='thickbox' title='$title'><img src='" . esc_url( admin_url( $icon ) ) . "' alt='$title' /></a>";
383}
384
385function get_upload_iframe_src($type) {
386 global $post_ID, $temp_ID;
387 $uploading_iframe_ID = (int) (0 == $post_ID ? $temp_ID : $post_ID);
388 $upload_iframe_src = add_query_arg('post_id', $uploading_iframe_ID, 'media-upload.php');
389
390 if ( 'media' != $type )
391 $upload_iframe_src = add_query_arg('type', $type, $upload_iframe_src);
392 $upload_iframe_src = apply_filters($type . '_upload_iframe_src', $upload_iframe_src);
393
394 return add_query_arg('TB_iframe', true, $upload_iframe_src);
395}
396
397/**
398 * {@internal Missing Short Description}}
399 *
400 * @since unknown
401 *
402 * @return unknown
403 */
404function media_upload_form_handler() {
405 check_admin_referer('media-form');
406
407 $errors = null;
408
409 if ( isset($_POST['send']) ) {
410 $keys = array_keys($_POST['send']);
411 $send_id = (int) array_shift($keys);
412 }
413
414 if ( !empty($_POST['attachments']) ) foreach ( $_POST['attachments'] as $attachment_id => $attachment ) {
415 $post = $_post = get_post($attachment_id, ARRAY_A);
416 if ( isset($attachment['post_content']) )
417 $post['post_content'] = $attachment['post_content'];
418 if ( isset($attachment['post_title']) )
419 $post['post_title'] = $attachment['post_title'];
420 if ( isset($attachment['post_excerpt']) )
421 $post['post_excerpt'] = $attachment['post_excerpt'];
422 if ( isset($attachment['menu_order']) )
423 $post['menu_order'] = $attachment['menu_order'];
424
425 if ( isset($send_id) && $attachment_id == $send_id ) {
426 if ( isset($attachment['post_parent']) )
427 $post['post_parent'] = $attachment['post_parent'];
428 }
429
430 $post = apply_filters('attachment_fields_to_save', $post, $attachment);
431
432 if ( isset($attachment['image_alt']) ) {
433 $image_alt = get_post_meta($attachment_id, '_wp_attachment_image_alt', true);
434 if ( $image_alt != stripslashes($attachment['image_alt']) ) {
435 $image_alt = wp_strip_all_tags( stripslashes($attachment['image_alt']), true );
436 // update_meta expects slashed
437 update_post_meta( $attachment_id, '_wp_attachment_image_alt', addslashes($image_alt) );
438 }
439 }
440
441 if ( isset($post['errors']) ) {
442 $errors[$attachment_id] = $post['errors'];
443 unset($post['errors']);
444 }
445
446 if ( $post != $_post )
447 wp_update_post($post);
448
449 foreach ( get_attachment_taxonomies($post) as $t ) {
450 if ( isset($attachment[$t]) )
451 wp_set_object_terms($attachment_id, array_map('trim', preg_split('/,+/', $attachment[$t])), $t, false);
452 }
453 }
454
455 if ( isset($_POST['insert-gallery']) || isset($_POST['update-gallery']) ) { ?>
456 <script type="text/javascript">
457 /* <![CDATA[ */
458 var win = window.dialogArguments || opener || parent || top;
459 win.tb_remove();
460 /* ]]> */
461 </script>
462 <?php
463 exit;
464 }
465
466 if ( isset($send_id) ) {
467 $attachment = stripslashes_deep( $_POST['attachments'][$send_id] );
468
469 $html = $attachment['post_title'];
470 if ( !empty($attachment['url']) ) {
471 $rel = '';
472 if ( strpos($attachment['url'], 'attachment_id') || get_attachment_link($send_id) == $attachment['url'] )
473 $rel = " rel='attachment wp-att-" . esc_attr($send_id) . "'";
474 $html = "<a href='{$attachment['url']}'$rel>$html</a>";
475 }
476
477 $html = apply_filters('media_send_to_editor', $html, $send_id, $attachment);
478 return media_send_to_editor($html);
479 }
480
481 return $errors;
482}
483
484/**
485 * {@internal Missing Short Description}}
486 *
487 * @since unknown
488 *
489 * @return unknown
490 */
491function media_upload_image() {
492 $errors = array();
493 $id = 0;
494
495 if ( isset($_POST['html-upload']) && !empty($_FILES) ) {
496 // Upload File button was clicked
497 $id = media_handle_upload('async-upload', $_REQUEST['post_id']);
498 unset($_FILES);
499 if ( is_wp_error($id) ) {
500 $errors['upload_error'] = $id;
501 $id = false;
502 }
503 }
504
505 if ( !empty($_POST['insertonlybutton']) ) {
506 $alt = $align = '';
507
508 $src = $_POST['insertonly']['src'];
509 if ( !empty($src) && !strpos($src, '://') )
510 $src = "http://$src";
511 $alt = esc_attr($_POST['insertonly']['alt']);
512 if ( isset($_POST['insertonly']['align']) ) {
513 $align = esc_attr($_POST['insertonly']['align']);
514 $class = " class='align$align'";
515 }
516 if ( !empty($src) )
517 $html = "<img src='" . esc_url($src) . "' alt='$alt'$class />";
518
519 $html = apply_filters('image_send_to_editor_url', $html, esc_url_raw($src), $alt, $align);
520 return media_send_to_editor($html);
521 }
522
523 if ( !empty($_POST) ) {
524 $return = media_upload_form_handler();
525
526 if ( is_string($return) )
527 return $return;
528 if ( is_array($return) )
529 $errors = $return;
530 }
531
532 if ( isset($_POST['save']) ) {
533 $errors['upload_notice'] = __('Saved.');
534 return media_upload_gallery();
535 }
536
537 if ( isset($_GET['tab']) && $_GET['tab'] == 'type_url' )
538 return wp_iframe( 'media_upload_type_url_form', 'image', $errors, $id );
539
540 return wp_iframe( 'media_upload_type_form', 'image', $errors, $id );
541}
542
543/**
544 * {@internal Missing Short Description}}
545 *
546 * @since unknown
547 *
548 * @param unknown_type $file
549 * @param unknown_type $post_id
550 * @param unknown_type $desc
551 * @return unknown
552 */
553function media_sideload_image($file, $post_id, $desc = null) {
554 if (!empty($file) ) {
555 // Download file to temp location
556 $tmp = download_url($file);
557
558 // Set variables for storage
559 // fix file filename for query strings
560 preg_match('/[^\?]+\.(jpg|JPG|jpe|JPE|jpeg|JPEG|gif|GIF|png|PNG)/', $file, $matches);//Arbitrary file disclosing
561 $file_array['name'] = basename($matches[0]);
562 $file_array['tmp_name'] = $tmp;
563
564 // If error storing temporarily, unlink
565 if ( is_wp_error($tmp) ) {
566 @unlink($file_array['tmp_name']);//Arbitrary file manipulations
567 $file_array['tmp_name'] = '';
568 }
569
570 // do the validation and storage stuff
571 $id = media_handle_sideload($file_array, $post_id, @$desc);
572 $src = $id;
573
574 // If error storing permanently, unlink
575 if ( is_wp_error($id) ) {
576 @unlink($file_array['tmp_name']);//Arbitrary file manipulations
577 return $id;
578 }
579 }
580
581 // Finally check to make sure the file has been saved, then return the html
582 if ( !empty($src) ) {
583 $alt = @$desc;
584 $html = "<img src='$src' alt='$alt' />";
585 return $html;
586 }
587}
588
589/**
590 * {@internal Missing Short Description}}
591 *
592 * @since unknown
593 *
594 * @return unknown
595 */
596function media_upload_audio() {
597 $errors = array();
598 $id = 0;
599
600 if ( isset($_POST['html-upload']) && !empty($_FILES) ) {
601 // Upload File button was clicked
602 $id = media_handle_upload('async-upload', $_REQUEST['post_id']);
603 unset($_FILES);
604 if ( is_wp_error($id) ) {
605 $errors['upload_error'] = $id;
606 $id = false;
607 }
608 }
609
610 if ( !empty($_POST['insertonlybutton']) ) {
611 $href = $_POST['insertonly']['href'];
612 if ( !empty($href) && !strpos($href, '://') )
613 $href = "http://$href";
614
615 $title = esc_attr($_POST['insertonly']['title']);
616 if ( empty($title) )
617 $title = esc_attr( basename($href) );
618
619 if ( !empty($title) && !empty($href) )
620 $html = "<a href='" . esc_url($href) . "' >$title</a>";
621
622 $html = apply_filters('audio_send_to_editor_url', $html, $href, $title);
623
624 return media_send_to_editor($html);
625 }
626
627 if ( !empty($_POST) ) {
628 $return = media_upload_form_handler();
629
630 if ( is_string($return) )
631 return $return;
632 if ( is_array($return) )
633 $errors = $return;
634 }
635
636 if ( isset($_POST['save']) ) {
637 $errors['upload_notice'] = __('Saved.');
638 return media_upload_gallery();
639 }
640
641 if ( isset($_GET['tab']) && $_GET['tab'] == 'type_url' )
642 return wp_iframe( 'media_upload_type_url_form', 'audio', $errors, $id );
643
644 return wp_iframe( 'media_upload_type_form', 'audio', $errors, $id );
645}
646
647/**
648 * {@internal Missing Short Description}}
649 *
650 * @since unknown
651 *
652 * @return unknown
653 */
654function media_upload_video() {
655 $errors = array();
656 $id = 0;
657
658 if ( isset($_POST['html-upload']) && !empty($_FILES) ) {
659 // Upload File button was clicked
660 $id = media_handle_upload('async-upload', $_REQUEST['post_id']);
661 unset($_FILES);
662 if ( is_wp_error($id) ) {
663 $errors['upload_error'] = $id;
664 $id = false;
665 }
666 }
667
668 if ( !empty($_POST['insertonlybutton']) ) {
669 $href = $_POST['insertonly']['href'];
670 if ( !empty($href) && !strpos($href, '://') )
671 $href = "http://$href";
672
673 $title = esc_attr($_POST['insertonly']['title']);
674 if ( empty($title) )
675 $title = esc_attr( basename($href) );
676
677 if ( !empty($title) && !empty($href) )
678 $html = "<a href='" . esc_url($href) . "' >$title</a>";
679
680 $html = apply_filters('video_send_to_editor_url', $html, $href, $title);
681
682 return media_send_to_editor($html);
683 }
684
685 if ( !empty($_POST) ) {
686 $return = media_upload_form_handler();
687
688 if ( is_string($return) )
689 return $return;
690 if ( is_array($return) )
691 $errors = $return;
692 }
693
694 if ( isset($_POST['save']) ) {
695 $errors['upload_notice'] = __('Saved.');
696 return media_upload_gallery();
697 }
698
699 if ( isset($_GET['tab']) && $_GET['tab'] == 'type_url' )
700 return wp_iframe( 'media_upload_type_url_form', 'video', $errors, $id );
701
702 return wp_iframe( 'media_upload_type_form', 'video', $errors, $id );
703}
704
705/**
706 * {@internal Missing Short Description}}
707 *
708 * @since unknown
709 *
710 * @return unknown
711 */
712function media_upload_file() {
713 $errors = array();
714 $id = 0;
715
716 if ( isset($_POST['html-upload']) && !empty($_FILES) ) {
717 // Upload File button was clicked
718 $id = media_handle_upload('async-upload', $_REQUEST['post_id']);
719 unset($_FILES);
720 if ( is_wp_error($id) ) {
721 $errors['upload_error'] = $id;
722 $id = false;
723 }
724 }
725
726 if ( !empty($_POST['insertonlybutton']) ) {
727 $href = $_POST['insertonly']['href'];
728 if ( !empty($href) && !strpos($href, '://') )
729 $href = "http://$href";
730
731 $title = esc_attr($_POST['insertonly']['title']);
732 if ( empty($title) )
733 $title = basename($href);
734 if ( !empty($title) && !empty($href) )
735 $html = "<a href='" . esc_url($href) . "' >$title</a>";
736 $html = apply_filters('file_send_to_editor_url', $html, esc_url_raw($href), $title);
737 return media_send_to_editor($html);
738 }
739
740 if ( !empty($_POST) ) {
741 $return = media_upload_form_handler();
742
743 if ( is_string($return) )
744 return $return;
745 if ( is_array($return) )
746 $errors = $return;
747 }
748
749 if ( isset($_POST['save']) ) {
750 $errors['upload_notice'] = __('Saved.');
751 return media_upload_gallery();
752 }
753
754 if ( isset($_GET['tab']) && $_GET['tab'] == 'type_url' )
755 return wp_iframe( 'media_upload_type_url_form', 'file', $errors, $id );//Arbitrary file disclosing
756
757 return wp_iframe( 'media_upload_type_form', 'file', $errors, $id );//Arbitrary file disclosing
758}
759
760/**
761 * {@internal Missing Short Description}}
762 *
763 * @since unknown
764 *
765 * @return unknown
766 */
767function media_upload_gallery() {
768 $errors = array();
769
770 if ( !empty($_POST) ) {
771 $return = media_upload_form_handler();
772
773 if ( is_string($return) )
774 return $return;
775 if ( is_array($return) )
776 $errors = $return;
777 }
778
779 wp_enqueue_script('admin-gallery');
780 return wp_iframe( 'media_upload_gallery_form', $errors );
781}
782
783/**
784 * {@internal Missing Short Description}}
785 *
786 * @since unknown
787 *
788 * @return unknown
789 */
790function media_upload_library() {
791 $errors = array();
792 if ( !empty($_POST) ) {
793 $return = media_upload_form_handler();
794
795 if ( is_string($return) )
796 return $return;
797 if ( is_array($return) )
798 $errors = $return;
799 }
800
801 return wp_iframe( 'media_upload_library_form', $errors );
802}
803
804/**
805 * Retrieve HTML for the image alignment radio buttons with the specified one checked.
806 *
807 * @since unknown
808 *
809 * @param unknown_type $post
810 * @param unknown_type $checked
811 * @return unknown
812 */
813function image_align_input_fields( $post, $checked = '' ) {
814
815 if ( empty($checked) )
816 $checked = get_user_setting('align', 'none');
817
818 $alignments = array('none' => __('None'), 'left' => __('Left'), 'center' => __('Center'), 'right' => __('Right'));
819 if ( !array_key_exists( (string) $checked, $alignments ) )
820 $checked = 'none';
821
822 $out = array();
823 foreach ( $alignments as $name => $label ) {
824 $name = esc_attr($name);
825 $out[] = "<input type='radio' name='attachments[{$post->ID}][align]' id='image-align-{$name}-{$post->ID}' value='$name'".
826 ( $checked == $name ? " checked='checked'" : "" ) .
827 " /><label for='image-align-{$name}-{$post->ID}' class='align image-align-{$name}-label'>$label</label>";
828 }
829 return join("\n", $out);
830}
831
832/**
833 * Retrieve HTML for the size radio buttons with the specified one checked.
834 *
835 * @since unknown
836 *
837 * @param unknown_type $post
838 * @param unknown_type $checked
839 * @return unknown
840 */
841function image_size_input_fields( $post, $check = '' ) {
842
843 // get a list of the actual pixel dimensions of each possible intermediate version of this image
844 $size_names = array('thumbnail' => __('Thumbnail'), 'medium' => __('Medium'), 'large' => __('Large'), 'full' => __('Full Size'));
845
846 if ( empty($check) )
847 $check = get_user_setting('imgsize', 'medium');
848
849 foreach ( $size_names as $size => $label ) {
850 $downsize = image_downsize($post->ID, $size);
851 $checked = '';
852
853 // is this size selectable?
854 $enabled = ( $downsize[3] || 'full' == $size );
855 $css_id = "image-size-{$size}-{$post->ID}";
856 // if this size is the default but that's not available, don't select it
857 if ( $size == $check ) {
858 if ( $enabled )
859 $checked = " checked='checked'";
860 else
861 $check = '';
862 } elseif ( !$check && $enabled && 'thumbnail' != $size ) {
863 // if $check is not enabled, default to the first available size that's bigger than a thumbnail
864 $check = $size;
865 $checked = " checked='checked'";
866 }
867
868 $html = "<div class='image-size-item'><input type='radio' " . disabled( $enabled, false, false ) . "name='attachments[$post->ID][image-size]' id='{$css_id}' value='{$size}'$checked />";
869
870 $html .= "<label for='{$css_id}'>$label</label>";
871 // only show the dimensions if that choice is available
872 if ( $enabled )
873 $html .= " <label for='{$css_id}' class='help'>" . sprintf( "(%d × %d)", $downsize[1], $downsize[2] ). "</label>";
874
875 $html .= '</div>';
876
877 $out[] = $html;
878 }
879
880 return array(
881 'label' => __('Size'),
882 'input' => 'html',
883 'html' => join("\n", $out),
884 );
885}
886
887/**
888 * Retrieve HTML for the Link URL buttons with the default link type as specified.
889 *
890 * @since unknown
891 *
892 * @param unknown_type $post
893 * @param unknown_type $url_type
894 * @return unknown
895 */
896function image_link_input_fields($post, $url_type = '') {
897
898 $file = wp_get_attachment_url($post->ID);
899 $link = get_attachment_link($post->ID);
900
901 if ( empty($url_type) )
902 $url_type = get_user_setting('urlbutton', 'post');
903
904 $url = '';
905 if ( $url_type == 'file' )
906 $url = $file;
907 elseif ( $url_type == 'post' )
908 $url = $link;
909
910 return "
911 <input type='text' class='text urlfield' name='attachments[$post->ID][url]' value='" . esc_attr($url) . "' /><br />
912 <button type='button' class='button urlnone' title=''>" . __('None') . "</button>
913 <button type='button' class='button urlfile' title='" . esc_attr($file) . "'>" . __('File URL') . "</button>
914 <button type='button' class='button urlpost' title='" . esc_attr($link) . "'>" . __('Post URL') . "</button>
915";
916}
917
918/**
919 * {@internal Missing Short Description}}
920 *
921 * @since unknown
922 *
923 * @param unknown_type $form_fields
924 * @param unknown_type $post
925 * @return unknown
926 */
927function image_attachment_fields_to_edit($form_fields, $post) {
928 if ( substr($post->post_mime_type, 0, 5) == 'image' ) {
929 $alt = get_post_meta($post->ID, '_wp_attachment_image_alt', true);
930 if ( empty($alt) )
931 $alt = '';
932
933 $form_fields['post_title']['required'] = true;
934
935 $form_fields['image_alt'] = array(
936 'value' => $alt,
937 'label' => __('Alternate Text'),
938 'helps' => __('Alt text for the image, e.g. “The Mona Lisa”')
939 );
940
941 $form_fields['align'] = array(
942 'label' => __('Alignment'),
943 'input' => 'html',
944 'html' => image_align_input_fields($post, get_option('image_default_align')),
945 );
946
947 $form_fields['image-size'] = image_size_input_fields( $post, get_option('image_default_size', 'medium') );
948
949 } else {
950 unset( $form_fields['image_alt'] );
951 }
952 return $form_fields;
953}
954
955add_filter('attachment_fields_to_edit', 'image_attachment_fields_to_edit', 10, 2);
956
957/**
958 * {@internal Missing Short Description}}
959 *
960 * @since unknown
961 *
962 * @param unknown_type $form_fields
963 * @param unknown_type $post
964 * @return unknown
965 */
966function media_single_attachment_fields_to_edit( $form_fields, $post ) {
967 unset($form_fields['url'], $form_fields['align'], $form_fields['image-size']);
968 return $form_fields;
969}
970
971function media_post_single_attachment_fields_to_edit( $form_fields, $post ) {
972 unset($form_fields['image_url']);
973 return $form_fields;
974}
975
976/**
977 * {@internal Missing Short Description}}
978 *
979 * @since unknown
980 *
981 * @param unknown_type $post
982 * @param unknown_type $attachment
983 * @return unknown
984 */
985function image_attachment_fields_to_save($post, $attachment) {
986 if ( substr($post['post_mime_type'], 0, 5) == 'image' ) {
987 if ( strlen(trim($post['post_title'])) == 0 ) {
988 $post['post_title'] = preg_replace('/\.\w+$/', '', basename($post['guid']));
989 $post['errors']['post_title']['errors'][] = __('Empty Title filled from filename.');
990 }
991 }
992
993 return $post;
994}
995
996add_filter('attachment_fields_to_save', 'image_attachment_fields_to_save', 10, 2);
997
998/**
999 * {@internal Missing Short Description}}
1000 *
/var/www/wordpress/wp-admin/includes/meta-boxes.php
/var/www/wordpress/wp-admin/includes/misc.php
/var/www/wordpress/wp-admin/includes/ms-deprecated.php
/var/www/wordpress/wp-admin/includes/ms.php
/var/www/wordpress/wp-admin/includes/nav-menu.php
/var/www/wordpress/wp-admin/includes/plugin-install.php
/var/www/wordpress/wp-admin/includes/plugin.php
/var/www/wordpress/wp-admin/includes/post.php
/var/www/wordpress/wp-admin/includes/schema.php
/var/www/wordpress/wp-admin/includes/taxonomy.php
/var/www/wordpress/wp-admin/includes/template.php
/var/www/wordpress/wp-admin/includes/theme-install.php
/var/www/wordpress/wp-admin/includes/theme.php
/var/www/wordpress/wp-admin/includes/update-core.php
/var/www/wordpress/wp-admin/includes/update.php
/var/www/wordpress/wp-admin/includes/upgrade.php
/var/www/wordpress/wp-admin/includes/user.php
/var/www/wordpress/wp-admin/includes/widgets.php
/var/www/wordpress/wp-admin/js/revisions-js.php
/var/www/wordpress/wp-admin/maint/repair.php
/var/www/wordpress/wp-admin/admin-ajax.php
/var/www/wordpress/wp-admin/admin-footer.php
/var/www/wordpress/wp-admin/admin-functions.php
/var/www/wordpress/wp-admin/admin-header.php
/var/www/wordpress/wp-admin/admin-post.php
/var/www/wordpress/wp-admin/admin.php
/var/www/wordpress/wp-admin/async-upload.php
/var/www/wordpress/wp-admin/comment.php
/var/www/wordpress/wp-admin/custom-background.php
/var/www/wordpress/wp-admin/custom-header.php
/var/www/wordpress/wp-admin/edit-attachment-rows.php
/var/www/wordpress/wp-admin/edit-comments.php
/var/www/wordpress/wp-admin/edit-form-advanced.php
/var/www/wordpress/wp-admin/edit-form-comment.php
/var/www/wordpress/wp-admin/edit-link-categories.php
/var/www/wordpress/wp-admin/edit-link-category-form.php
/var/www/wordpress/wp-admin/edit-link-form.php
/var/www/wordpress/wp-admin/edit-post-rows.php
/var/www/wordpress/wp-admin/edit-tag-form.php
/var/www/wordpress/wp-admin/edit-tags.php
/var/www/wordpress/wp-admin/edit.php
/var/www/wordpress/wp-admin/export.php
/var/www/wordpress/wp-admin/gears-manifest.php
/var/www/wordpress/wp-admin/import.php
/var/www/wordpress/wp-admin/index-extra.php
/var/www/wordpress/wp-admin/index.php
/var/www/wordpress/wp-admin/install-helper.php
/var/www/wordpress/wp-admin/install.php
/var/www/wordpress/wp-admin/link-add.php
/var/www/wordpress/wp-admin/link-category.php
/var/www/wordpress/wp-admin/link-manager.php
/var/www/wordpress/wp-admin/link-parse-opml.php
/var/www/wordpress/wp-admin/link.php
/var/www/wordpress/wp-admin/load-scripts.php
/var/www/wordpress/wp-admin/load-styles.php
/var/www/wordpress/wp-admin/media-new.php
/var/www/wordpress/wp-admin/media-upload.php
/var/www/wordpress/wp-admin/media.php
/var/www/wordpress/wp-admin/menu-header.php
/var/www/wordpress/wp-admin/menu.php
/var/www/wordpress/wp-admin/moderation.php
/var/www/wordpress/wp-admin/ms-admin.php
/var/www/wordpress/wp-admin/ms-delete-site.php
/var/www/wordpress/wp-admin/ms-edit.php
/var/www/wordpress/wp-admin/ms-options.php
/var/www/wordpress/wp-admin/ms-sites.php
/var/www/wordpress/wp-admin/ms-themes.php
/var/www/wordpress/wp-admin/ms-upgrade-network.php
/var/www/wordpress/wp-admin/ms-users.php
/var/www/wordpress/wp-admin/my-sites.php
/var/www/wordpress/wp-admin/nav-menus.php
/var/www/wordpress/wp-admin/network.php
/var/www/wordpress/wp-admin/options-discussion.php
/var/www/wordpress/wp-admin/options-general.php
/var/www/wordpress/wp-admin/options-head.php
/var/www/wordpress/wp-admin/options-media.php
/var/www/wordpress/wp-admin/options-permalink.php
/var/www/wordpress/wp-admin/options-privacy.php
/var/www/wordpress/wp-admin/options-reading.php
/var/www/wordpress/wp-admin/options-writing.php
/var/www/wordpress/wp-admin/options.php
/var/www/wordpress/wp-admin/plugin-editor.php
/var/www/wordpress/wp-admin/plugin-install.php
/var/www/wordpress/wp-admin/plugins.php
/var/www/wordpress/wp-admin/post-new.php
/var/www/wordpress/wp-admin/post.php
/var/www/wordpress/wp-admin/press-this.php
/var/www/wordpress/wp-admin/profile.php
/var/www/wordpress/wp-admin/revision.php
/var/www/wordpress/wp-admin/setup-config.php
/var/www/wordpress/wp-admin/sidebar.php
/var/www/wordpress/wp-admin/theme-editor.php
/var/www/wordpress/wp-admin/theme-install.php
/var/www/wordpress/wp-admin/themes.php
/var/www/wordpress/wp-admin/tools.php
/var/www/wordpress/wp-admin/update-core.php
/var/www/wordpress/wp-admin/update.php
/var/www/wordpress/wp-admin/upgrade-functions.php
/var/www/wordpress/wp-admin/upgrade.php
/var/www/wordpress/wp-admin/upload.php
/var/www/wordpress/wp-admin/user-edit.php
/var/www/wordpress/wp-admin/user-new.php
/var/www/wordpress/wp-admin/users.php
/var/www/wordpress/wp-admin/widgets.php
/var/www/wordpress/wp-content/languages/ru_RU.php
/var/www/wordpress/wp-content/plugins/akismet/akismet.php
/var/www/wordpress/wp-content/plugins/rh/rh.php
/var/www/wordpress/wp-content/plugins/hello.php
/var/www/wordpress/wp-content/plugins/index.php
/var/www/wordpress/wp-content/themes/twentyten/404.php
/var/www/wordpress/wp-content/themes/twentyten/archive.php
/var/www/wordpress/wp-content/themes/twentyten/attachment.php
/var/www/wordpress/wp-content/themes/twentyten/author.php
/var/www/wordpress/wp-content/themes/twentyten/category.php
/var/www/wordpress/wp-content/themes/twentyten/comments.php
/var/www/wordpress/wp-content/themes/twentyten/footer.php
/var/www/wordpress/wp-content/themes/twentyten/functions.php
/var/www/wordpress/wp-content/themes/twentyten/header.php
/var/www/wordpress/wp-content/themes/twentyten/index.php
/var/www/wordpress/wp-content/themes/twentyten/loop.php
/var/www/wordpress/wp-content/themes/twentyten/onecolumn-page.php
/var/www/wordpress/wp-content/themes/twentyten/page.php
/var/www/wordpress/wp-content/themes/twentyten/search.php
/var/www/wordpress/wp-content/themes/twentyten/sidebar-footer.php
/var/www/wordpress/wp-content/themes/twentyten/sidebar.php
/var/www/wordpress/wp-content/themes/twentyten/single.php
/var/www/wordpress/wp-content/themes/twentyten/tag.php
/var/www/wordpress/wp-content/themes/index.php
/var/www/wordpress/wp-content/index.php
/var/www/wordpress/wp-includes/js/tinymce/langs/wp-langs.php
/var/www/wordpress/wp-includes/js/tinymce/plugins/spellchecker/classes/utils/JSON.php
/var/www/wordpress/wp-includes/js/tinymce/plugins/spellchecker/classes/utils/Logger.php
/var/www/wordpress/wp-includes/js/tinymce/plugins/spellchecker/classes/EnchantSpell.php
/var/www/wordpress/wp-includes/js/tinymce/plugins/spellchecker/classes/GoogleSpell.php
/var/www/wordpress/wp-includes/js/tinymce/plugins/spellchecker/classes/PSpell.php
/var/www/wordpress/wp-includes/js/tinymce/plugins/spellchecker/classes/PSpellShell.php
/var/www/wordpress/wp-includes/js/tinymce/plugins/spellchecker/classes/SpellChecker.php
/var/www/wordpress/wp-includes/js/tinymce/plugins/spellchecker/includes/general.php
/var/www/wordpress/wp-includes/js/tinymce/plugins/spellchecker/config.php
/var/www/wordpress/wp-includes/js/tinymce/plugins/spellchecker/rpc.php
/var/www/wordpress/wp-includes/js/tinymce/wp-mce-help.php
/var/www/wordpress/wp-includes/js/tinymce/wp-tinymce.php
/var/www/wordpress/wp-includes/pomo/entry.php
/var/www/wordpress/wp-includes/pomo/mo.php
/var/www/wordpress/wp-includes/pomo/po.php
/var/www/wordpress/wp-includes/pomo/streams.php
/var/www/wordpress/wp-includes/pomo/translations.php
/var/www/wordpress/wp-includes/Text/Diff/Engine/native.php
/var/www/wordpress/wp-includes/Text/Diff/Engine/shell.php
/var/www/wordpress/wp-includes/Text/Diff/Engine/string.php
/var/www/wordpress/wp-includes/Text/Diff/Engine/xdiff.php
/var/www/wordpress/wp-includes/Text/Diff/Renderer/inline.php
/var/www/wordpress/wp-includes/Text/Diff/Renderer.php
/var/www/wordpress/wp-includes/Text/Diff.php
/var/www/wordpress/wp-includes/theme-compat/comments-popup.php
/var/www/wordpress/wp-includes/theme-compat/comments.php
/var/www/wordpress/wp-includes/theme-compat/footer.php
/var/www/wordpress/wp-includes/theme-compat/header.php
/var/www/wordpress/wp-includes/theme-compat/sidebar.php
/var/www/wordpress/wp-includes/atomlib.php
/var/www/wordpress/wp-includes/author-template.php
/var/www/wordpress/wp-includes/bookmark-template.php
/var/www/wordpress/wp-includes/bookmark.php
/var/www/wordpress/wp-includes/cache.php
/var/www/wordpress/wp-includes/canonical.php
/var/www/wordpress/wp-includes/capabilities.php
/var/www/wordpress/wp-includes/category-template.php
/var/www/wordpress/wp-includes/category.php
/var/www/wordpress/wp-includes/class-feed.php
/var/www/wordpress/wp-includes/class-http.php
/var/www/wordpress/wp-includes/class-IXR.php
/var/www/wordpress/wp-includes/class-json.php
/var/www/wordpress/wp-includes/class-oembed.php
/var/www/wordpress/wp-includes/class-phpass.php
/var/www/wordpress/wp-includes/class-phpmailer.php
/var/www/wordpress/wp-includes/class-pop3.php
/var/www/wordpress/wp-includes/class-simplepie.php
/var/www/wordpress/wp-includes/class-smtp.php
/var/www/wordpress/wp-includes/class-snoopy.php
/var/www/wordpress/wp-includes/class.wp-dependencies.php
/var/www/wordpress/wp-includes/class.wp-scripts.php
/var/www/wordpress/wp-includes/class.wp-styles.php
/var/www/wordpress/wp-includes/classes.php
/var/www/wordpress/wp-includes/comment-template.php
/var/www/wordpress/wp-includes/comment.php
/var/www/wordpress/wp-includes/compat.php
/var/www/wordpress/wp-includes/cron.php
/var/www/wordpress/wp-includes/default-constants.php
/var/www/wordpress/wp-includes/default-embeds.php
/var/www/wordpress/wp-includes/default-filters.php
/var/www/wordpress/wp-includes/default-widgets.php
/var/www/wordpress/wp-includes/deprecated.php
/var/www/wordpress/wp-includes/feed-atom-comments.php
/var/www/wordpress/wp-includes/feed-atom.php
/var/www/wordpress/wp-includes/feed-rdf.php
/var/www/wordpress/wp-includes/feed-rss.php
/var/www/wordpress/wp-includes/feed-rss2-comments.php
/var/www/wordpress/wp-includes/feed-rss2.php
/var/www/wordpress/wp-includes/feed.php
/var/www/wordpress/wp-includes/formatting.php
/var/www/wordpress/wp-includes/functions.php
/var/www/wordpress/wp-includes/functions.wp-scripts.php
/var/www/wordpress/wp-includes/functions.wp-styles.php
/var/www/wordpress/wp-includes/general-template.php
/var/www/wordpress/wp-includes/http.php
/var/www/wordpress/wp-includes/kses.php
/var/www/wordpress/wp-includes/l10n.php
/var/www/wordpress/wp-includes/link-template.php
/var/www/wordpress/wp-includes/load.php
/var/www/wordpress/wp-includes/locale.php
/var/www/wordpress/wp-includes/media.php
/var/www/wordpress/wp-includes/meta.php
/var/www/wordpress/wp-includes/ms-blogs.php
/var/www/wordpress/wp-includes/ms-default-constants.php
/var/www/wordpress/wp-includes/ms-default-filters.php
/var/www/wordpress/wp-includes/ms-deprecated.php
/var/www/wordpress/wp-includes/ms-files.php
/var/www/wordpress/wp-includes/ms-functions.php
/var/www/wordpress/wp-includes/ms-load.php
/var/www/wordpress/wp-includes/ms-settings.php
/var/www/wordpress/wp-includes/nav-menu-template.php
/var/www/wordpress/wp-includes/nav-menu.php
/var/www/wordpress/wp-includes/pluggable-deprecated.php
/var/www/wordpress/wp-includes/pluggable.php
/var/www/wordpress/wp-includes/plugin.php
/var/www/wordpress/wp-includes/post-template.php
/var/www/wordpress/wp-includes/post-thumbnail-template.php
/var/www/wordpress/wp-includes/post.php
/var/www/wordpress/wp-includes/query.php
/var/www/wordpress/wp-includes/registration-functions.php
/var/www/wordpress/wp-includes/registration.php
/var/www/wordpress/wp-includes/rewrite.php
/var/www/wordpress/wp-includes/rss-functions.php
/var/www/wordpress/wp-includes/rss.php
/var/www/wordpress/wp-includes/script-loader.php
/var/www/wordpress/wp-includes/shortcodes.php
/var/www/wordpress/wp-includes/taxonomy.php
/var/www/wordpress/wp-includes/template-loader.php
/var/www/wordpress/wp-includes/theme.php
/var/www/wordpress/wp-includes/update.php
/var/www/wordpress/wp-includes/user.php
/var/www/wordpress/wp-includes/vars.php
/var/www/wordpress/wp-includes/version.php
/var/www/wordpress/wp-includes/widgets.php
/var/www/wordpress/wp-includes/wp-db.php
/var/www/wordpress/wp-includes/wp-diff.php
/var/www/wordpress/index.php
/var/www/wordpress/wp-activate.php
/var/www/wordpress/wp-app.php
/var/www/wordpress/wp-atom.php
/var/www/wordpress/wp-blog-header.php
/var/www/wordpress/wp-comments-post.php
/var/www/wordpress/wp-commentsrss2.php
/var/www/wordpress/wp-config-sample.php
/var/www/wordpress/wp-cron.php
/var/www/wordpress/wp-feed.php
/var/www/wordpress/wp-links-opml.php
/var/www/wordpress/wp-load.php
/var/www/wordpress/wp-login.php
/var/www/wordpress/wp-mail.php
/var/www/wordpress/wp-pass.php
/var/www/wordpress/wp-rdf.php
/var/www/wordpress/wp-register.php
/var/www/wordpress/wp-rss.php
/var/www/wordpress/wp-rss2.php
/var/www/wordpress/wp-settings.php
/var/www/wordpress/wp-signup.php
/var/www/wordpress/wp-trackback.php
/var/www/wordpress/xmlrpc.php