Make WordPress Core

Changeset 55780

Timestamp:
05/16/2023 03:39:32 PM (15 months ago)
Author:
SergeyBiryukov
Message:

Grouped backports to the 4.5 branch.

  • Media: Prevent CSRF setting attachment thumbnails.
  • Embeds: Add protocol validation for WordPress Embed code.

Merges [55763] and [55764] to the 4.5 branch.
Props dd32, isabel_brison, martinkrcho, matveb, ocean90, paulkevan, peterwilsoncc, timothyblynjacobs, xknown, youknowriad.

Location:
branches/4.5
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • branches/4.5/package-lock.json

    r54589 r55780  
    11{
    22    "name": "WordPress",
    3     "version": "4.5.28",
     3    "version": "4.5.2",
    44    "lockfileVersion": 1,
    55    "requires": true,
  • branches/4.5/package.json

    r54589 r55780  
    11{
    22    "name": "WordPress",
    3     "version": "4.5.28",
     3    "version": "4.5.2",
    44    "description": "WordPress is web software you can use to create a beautiful website or blog.",
    55    "repository": {
  • branches/4.5/src/wp-admin/about.php

    r55387 r55780  
    4141        <div class="changelog point-releases">
    4242            <h3><?php _e( 'Maintenance and Security Releases' ); ?></h3>
     43
     44
     45
     46
     47
     48
     49
     50
     51
     52
     53
     54
     55
     56
     57
     58
     59
     60
     61
     62
    4363            <p>
    4464                <?php
  • branches/4.5/src/wp-admin/includes/ajax-actions.php

    r45950 r55780  
    21692169    }
    21702170
     2171
     2172
     2173
     2174
    21712175    $post_ids = array();
    21722176    // For each URL, try to find its corresponding post ID.
  • branches/4.5/src/wp-includes/js/media/views/frame/video-details.js

    r33337 r55780  
    105105            wp.ajax.send( 'set-attachment-thumbnail', {
    106106                data : {
     107
    107108                    urls: urls,
    108109                    thumbnail_id: attachment.get( 'id' )
  • branches/4.5/src/wp-includes/js/wp-embed.js

    r36708 r55780  
    3838        var iframes = document.querySelectorAll( 'iframe[data-secret="' + data.secret + '"]' ),
    3939            blockquotes = document.querySelectorAll( 'blockquote[data-secret="' + data.secret + '"]' ),
     40
    4041            i, source, height, sourceURL, targetURL;
    4142
     
    7273                sourceURL.href = source.getAttribute( 'src' );
    7374                targetURL.href = data.value;
     75
     76
     77
     78
     79
    7480
    7581                /* Only continue if link hostname matches iframe's hostname. */
  • branches/4.5/src/wp-includes/media.php

    r37034 r55780  
    32873287        'captions'  => ! apply_filters( 'disable_captions', '' ),
    32883288        'nonce'     => array(
    3289             'sendToEditor' => wp_create_nonce( 'media-send-to-editor' ),
     3289            'sendToEditor'           => wp_create_nonce( 'media-send-to-editor' ),
     3290            'setAttachmentThumbnail' => wp_create_nonce( 'set-attachment-thumbnail' ),
    32903291        ),
    32913292        'post'    => array(
  • branches/4.5/src/wp-includes/version.php

    r54589 r55780  
    55 * @global string $wp_version
    66 */
    7 $wp_version = '4.5.28-src';
     7$wp_version = '4.5.2-src';
    88
    99/**
  • branches/4.5/tests/phpunit/tests/ajax/Attachments.php

    r37289 r55780  
    110110        $this->assertEquals( $expected, $response['data'] );
    111111    }
     112
     113
     114
     115
     116
     117
     118
     119
     120
     121
     122
     123
     124
     125
     126
     127
     128
     129
     130
     131
     132
     133
     134
     135
     136
     137
     138
     139
     140
     141
     142
     143
     144
     145
     146
     147
     148
     149
     150
     151
     152
     153
     154
     155
     156
     157
     158
     159
     160
     161
     162
     163
     164
     165
     166
     167
     168
     169
     170
     171
     172
     173
     174
     175
     176
     177
     178
     179
     180
     181
     182
     183
     184
     185
     186
     187
     188
     189
     190
     191
     192
     193
     194
     195
     196
     197
     198
     199
     200
     201
     202
    112203}
Note: See TracChangeset for help on using the changeset viewer.