Make WordPress Core


Ignore:
Timestamp:
07/17/2014 09:13:53 AM (11 years ago)
Author:
DrewAPicture
Message:

Fix syntax for single- and multi-line comments in wp-admin-directory files.

See #28931.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/press-this.php

    r27772 r29206  
    4141    if ( !empty($_POST['photo_src']) && current_user_can('upload_files') ) {
    4242        foreach( (array) $_POST['photo_src'] as $key => $image) {
    43             // see if files exist in content - we don't want to upload non-used selected files.
     43            // See if files exist in content - we don't want to upload non-used selected files.
    4444            if ( strpos($_POST['content'], htmlspecialchars($image)) !== false ) {
    4545                $desc = isset($_POST['photo_description'][$key]) ? $_POST['photo_description'][$key] : '';
     
    5252        }
    5353    }
    54     // set the post_content and status
     54    // Set the post_content and status.
    5555    $post['post_content'] = $content;
    5656    if ( isset( $_POST['publish'] ) && current_user_can( 'publish_posts' ) )
     
    6161        $post['post_status'] = 'draft';
    6262
    63     // error handling for media_sideload
     63    // Error handling for media_sideload.
    6464    if ( is_wp_error($upload) ) {
    6565        wp_delete_post($post_ID);
    6666        wp_die($upload);
    6767    } else {
    68         // Post formats
     68        // Post formats.
    6969        if ( isset( $_POST['post_format'] ) ) {
    7070            if ( current_theme_supports( 'post-formats', $_POST['post_format'] ) )
     
    182182            $sources = array();
    183183            foreach ($matches[3] as $src) {
    184                 // if no http in url
     184
     185                // If no http in URL.
    185186                if (strpos($src, 'http') === false)
    186                     // if it doesn't have a relative uri
     187                    // If it doesn't have a relative URI.
    187188                    if ( strpos($src, '../') === false && strpos($src, './') === false && strpos($src, '/') === 0)
    188189                        $src = 'http://'.str_replace('//','/', $host['host'].'/'.$src);
     
    198199
    199200    case 'photo_js': ?>
    200         // gather images and load some default JS
     201        // Gather images and load some default JS.
    201202        var last = null
    202203        var img, img_tag, aspect, w, h, skip, i, strtoappend = "";
     
    439440    }
    440441    jQuery(document).ready(function($) {
    441         //resize screen
     442        // Resize screen.
    442443        window.resizeTo(760,580);
    443         // set button actions
     444
     445        // Set button actions.
    444446        jQuery('#photo_button').click(function() { show('photo'); return false; });
    445447        jQuery('#video_button').click(function() { show('video'); return false; });
    446         // auto select
     448
     449        // Auto select.
    447450        <?php if ( preg_match("/youtube\.com\/watch/i", $url) ) { ?>
    448451            show('video');
Note: See TracChangeset for help on using the changeset viewer.