WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/13/2016 06:40:19 PM (5 years ago)
Author:
DrewAPicture
Message:

Docs: Standardize on 'backward compatibility/compatible' nomenclature in core inline docs.

Also use 'back-compat' in some inline comments where backward compatibility is the subject and shorthand feels more natural.

Note: 'backwards compatibility/compatibile' can also be considered correct, though it's primary seen in regular use in British English.

Props ocean90.
Fixes #36835.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-walker.php

    r35876 r37431  
    140140        $this->has_children = ! empty( $children_elements[ $id ] );
    141141        if ( isset( $args[0] ) && is_array( $args[0] ) ) {
    142             $args[0]['has_children'] = $this->has_children; // Backwards compatibility.
     142            $args[0]['has_children'] = $this->has_children; // Back-compat.
    143143        }
    144144
     
    387387     * @since 2.7.0
    388388     * @access public
    389      * 
     389     *
    390390     * @param array $elements Elements to list.
    391391     * @return int Number of root elements.
Note: See TracChangeset for help on using the changeset viewer.