Make WordPress Core


Ignore:
Timestamp:
07/11/2020 12:12:46 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict type check for in_array() in wp-includes/feed.php.

Additionally:

  • Correct inline comments per the documentation standards.
  • Correct the @ticket reference in tests/feed/atom.php.

Follow-up to [48429].

See #33591.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/feed/atom.php

    r48431 r48435  
    208208
    209209    /**
    210      * @test 33591
     210     * @ticket 33591
    211211     */
    212212    function test_atom_enclosure_with_extended_url_length_type_parsing() {
    213213        $enclosures = array(
    214214            array(
    215                 'actual'   => "https://wordpress.dev/wp-content/uploads/2017/09/movie.mp4\n318465\nvideo/mp4",     // url length type
     215                // URL, length, type.
     216                'actual'   => "https://wordpress.dev/wp-content/uploads/2017/09/movie.mp4\n318465\nvideo/mp4",
    216217                'expected' => array(
    217218                    'href'   => 'https://wordpress.dev/wp-content/uploads/2017/09/movie.mp4',
     
    221222            ),
    222223            array(
    223                 'actual'   => "https://wordpress.dev/wp-content/uploads/2017/09/movie.mp4\nvideo/mp4\n318465",     // url type length
     224                // URL, type, length.
     225                'actual'   => "https://wordpress.dev/wp-content/uploads/2017/09/movie.mp4\nvideo/mp4\n318465",
    224226                'expected' => array(
    225227                    'href'   => 'https://wordpress.dev/wp-content/uploads/2017/09/movie.mp4',
     
    229231            ),
    230232            array(
    231                 'actual'   => "https://wordpress.dev/wp-content/uploads/2017/09/movie.mp4\n318465",                // url length
     233                // URL, length.
     234                'actual'   => "https://wordpress.dev/wp-content/uploads/2017/09/movie.mp4\n318465",
    232235                'expected' => array(
    233236                    'href'   => 'https://wordpress.dev/wp-content/uploads/2017/09/movie.mp4',
     
    237240            ),
    238241            array(
    239                 'actual'   => "https://wordpress.dev/wp-content/uploads/2017/01/audio.mp3\n\naudio/mpeg",          // url type
     242                // URL, type.
     243                'actual'   => "https://wordpress.dev/wp-content/uploads/2017/01/audio.mp3\n\naudio/mpeg",
    240244                'expected' => array(
    241245                    'href'   => 'https://wordpress.dev/wp-content/uploads/2017/01/audio.mp3',
     
    245249            ),
    246250            array(
    247                 'actual'   => 'https://wordpress.dev/wp-content/uploads/2016/01/test.mp4',                         // url
     251                // URL.
     252                'actual'   => 'https://wordpress.dev/wp-content/uploads/2016/01/test.mp4',
    248253                'expected' => array(
    249254                    'href'   => 'https://wordpress.dev/wp-content/uploads/2016/01/test.mp4',
Note: See TracChangeset for help on using the changeset viewer.