WordPress.org

Making WordPress.org


Ignore:
Timestamp:
02/24/2019 04:13:21 PM (7 months ago)
Author:
ocean90
Message:

Plugin Directory: Set code_touched for changes in JavaScript files.

See #3876.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/class-svn-watcher.php

    r6287 r8337  
    137137                    $plugin['readme_touched'] = true;
    138138                }
    139                 if ( ! $plugin['code_touched'] && ( '/' == substr( $path, -1 ) || '.php' == substr( $path, -4 ) ) ) {
     139                if ( ! $plugin['code_touched'] && ( '/' === substr( $path, -1 ) || '.php' === substr( $path, -4 ) || '.js' === substr( $path, -3 ) ) ) {
    140140                    $plugin['code_touched'] = true;
    141141                }
Note: See TracChangeset for help on using the changeset viewer.