WordPress.org

Making WordPress.org

Changeset 4765


Ignore:
Timestamp:
01/24/2017 11:06:35 AM (3 years ago)
Author:
dd32
Message:

Plugin Directory: Fix a typo in [4764]

Location:
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/api/routes/class-plugin.php

    r4764 r4765  
    142142            if ( $descriptions && !empty( $description[ (int)$image['resolution'] ] ) ) {
    143143                $caption = $description[ (int)$image['resolution'] ];
    144                 $caption = Plugin_I18n::instance()->translate( 'screenshot-' . $image['resolution'], $caption, [ 'post_id' => $$post->ID ] );
     144                $caption = Plugin_I18n::instance()->translate( 'screenshot-' . $image['resolution'], $caption, [ 'post_id' => $post->ID ] );
    145145            }
    146146
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-screenshots.php

    r4764 r4765  
    3737            if ( $descriptions && ! empty( $descriptions[ (int)$image['resolution'] ] ) ) {
    3838                $caption = $descriptions[ (int)$image['resolution'] ];
    39                 $caption = Plugin_I18n::instance()->translate( 'screenshot-' . $image['resolution'], $caption, [ 'post_id' => $$plugin->ID ] );
     39                $caption = Plugin_I18n::instance()->translate( 'screenshot-' . $image['resolution'], $caption, [ 'post_id' => $plugin->ID ] );
     40               
    4041                $screen_shot .= '<figcaption>' . $caption . '</figcaption>';
    4142            }
Note: See TracChangeset for help on using the changeset viewer.