WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/13/2018 01:48:48 AM (15 months ago)
Author:
peterwilsoncc
Message:

Multisite: Validate activation links.

Merges [44048] to the 4.3 branch.

Location:
branches/4.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.3

  • branches/4.3/src/wp-admin/includes/screen.php

    r39765 r44063  
    470470            switch ( $base ) {
    471471                case 'post' :
    472                     if ( isset( $_GET['post'] ) )
     472                    if ( isset( $_GET['post'] ) && isset( $_POST['post_ID'] ) && (int) $_GET['post'] !== (int) $_POST['post_ID'] )
     473                        wp_die( __( 'A post ID mismatch has been detected.' ), __( 'Sorry, you are not allowed to edit this item.' ), 400 );
     474                    elseif ( isset( $_GET['post'] ) )
    473475                        $post_id = (int) $_GET['post'];
    474476                    elseif ( isset( $_POST['post_ID'] ) )
Note: See TracChangeset for help on using the changeset viewer.