WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/12/2020 06:30:03 PM (18 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison in some wp-admin files.

Props pikamander2, mukesh27, SergeyBiryukov.
Fixes #49239.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/link-parse-opml.php

    r47397 r47785  
    2828 * @global array $feeds
    2929 *
    30  * @param resource $parser XML Parser resource.
    31  * @param string $tagName XML element name.
    32  * @param array $attrs XML element attributes.
     30 * @param resource $parser   XML Parser resource.
     31 * @param string   $tag_name XML element name.
     32 * @param array    $attrs    XML element attributes.
    3333 */
    34 function startElement( $parser, $tagName, $attrs ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid
     34function startElement( $parser, $tag_name, $attrs ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid
    3535    global $names, $urls, $targets, $descriptions, $feeds;
    3636
    37     if ( 'OUTLINE' === $tagName ) {
     37    if ( 'OUTLINE' === $tag_name ) {
    3838        $name = '';
    3939        if ( isset( $attrs['TEXT'] ) ) {
     
    6666 * @access private
    6767 *
    68  * @param resource $parser XML Parser resource.
    69  * @param string $tagName XML tag name.
     68 * @param resource $parser   XML Parser resource.
     69 * @param string   $tag_name XML tag name.
    7070 */
    71 function endElement( $parser, $tagName ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid
     71function endElement( $parser, $tag_name ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid
    7272    // Nothing to do.
    7373}
Note: See TracChangeset for help on using the changeset viewer.