Making WordPress.org

Changeset 7116


Ignore:
Timestamp:
04/16/2018 07:00:52 PM (6 years ago)
Author:
Otto42
Message:

Showcase: use query arg functions to add proper width variables for mshots

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/functions.php

    r7114 r7116  
    3333
    3434    if ( '' != $width ) {
    35         $screenshot .= '?w=' . $width;
     35        $screenshot = add_query_arg( 'w', $width, $screenshot);
    3636    }
    3737
     
    5656
    5757    if ( '' != $width ) {
    58         $screenshot .= '?w=' . $width;
    59         $srcset .= '?w=' . $width*2;
     58        $screenshot = add_query_arg( 'w', $width, $screenshot);
     59        $srcset = add_query_arg( 'w', $width*2 , $screenshot);
    6060    }
    6161
Note: See TracChangeset for help on using the changeset viewer.