Make WordPress Core

Changeset 49758


Ignore:
Timestamp:
12/06/2020 02:19:56 AM (4 years ago)
Author:
peterwilsoncc
Message:

Docs, Tests: Correctly capitalize JavaScript.

Correct Javascript to JavaScript within Wordpress core ;)

See #51800, #51802.

Location:
trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/Gruntfile.js

    r49109 r49758  
    15141514
    15151515    // Travis CI tasks.
    1516     grunt.registerTask('travis:js', 'Runs Javascript Travis CI tasks.', [ 'jshint:corejs', 'qunit:compiled' ]);
     1516    grunt.registerTask('travis:js', 'Runs JavaScript Travis CI tasks.', [ 'jshint:corejs', 'qunit:compiled' ]);
    15171517    grunt.registerTask('travis:phpunit', 'Runs PHPUnit Travis CI tasks.', [ 'build', 'phpunit' ]);
    15181518    grunt.registerTask('travis:phpcs', 'Runs PHP Coding Standards Travis CI tasks.', [ 'format:php:error', 'lint:php:travisErrors:error', 'lint:php:travisWarnings:error' ]);
  • trunk/src/wp-content/themes/twentythirteen/functions.php

    r49208 r49758  
    759759
    760760/**
    761  * Enqueue Javascript postMessage handlers for the Customizer.
     761 * Enqueue JavaScript postMessage handlers for the Customizer.
    762762 *
    763763 * Binds JavaScript handlers to make the Customizer preview
  • trunk/src/wp-content/themes/twentytwelve/functions.php

    r48825 r49758  
    675675
    676676/**
    677  * Enqueue Javascript postMessage handlers for the Customizer.
     677 * Enqueue JavaScript postMessage handlers for the Customizer.
    678678 *
    679679 * Binds JS handlers to make the Customizer preview reload changes asynchronously.
  • trunk/src/wp-includes/class.wp-scripts.php

    r48897 r49758  
    416416     * @param string $handle   Name of the script to add the inline script to.
    417417     *                         Must be lowercase.
    418      * @param string $data     String containing the javascript to be added.
     418     * @param string $data     String containing the JavaScript to be added.
    419419     * @param string $position Optional. Whether to add the inline script
    420420     *                         before the handle or after. Default 'after'.
  • trunk/src/wp-includes/functions.wp-scripts.php

    r48590 r49758  
    123123 *
    124124 * @param string $handle   Name of the script to add the inline script to.
    125  * @param string $data     String containing the javascript to be added.
     125 * @param string $data     String containing the JavaScript to be added.
    126126 * @param string $position Optional. Whether to add the inline script before the handle
    127127 *                         or after. Default 'after'.
  • trunk/src/wp-login.php

    r49539 r49758  
    324324
    325325/**
    326  * Outputs the Javascript to handle the form shaking on the login page.
     326 * Outputs the JavaScript to handle the form shaking on the login page.
    327327 *
    328328 * @since 3.0.0
  • trunk/tests/phpunit/tests/formatting/WPTrimWords.php

    r48937 r49758  
    4242        $trimmed = 'This text contains. It should go.';
    4343
    44         $text = 'This text contains<script>alert(" Javascript");</script>. It should go.';
     44        $text = 'This text contains<script>alert(" JavaScript");</script>. It should go.';
    4545        $this->assertSame( $trimmed, wp_trim_words( $text ) );
    4646
Note: See TracChangeset for help on using the changeset viewer.