Make WordPress Core

Ticket #40436: 40436.docs.diff

File 40436.docs.diff, 1.6 KB (added by soulseekah, 6 years ago)

Add missing documentation for 'sort' parameter

  • src/wp-includes/class-wp-taxonomy.php

    diff --git src/wp-includes/class-wp-taxonomy.php src/wp-includes/class-wp-taxonomy.php
    index 94353d8..1836f2a 100644
    final class WP_Taxonomy { 
    152152        public $cap;
    153153
    154154        /**
     155         * Whether this taxonomy should remember the order in which terms are added to objects
     156         *
     157         * @var bool
     158         */
     159        public $sort;
     160
     161        /**
    155162         * Rewrites information for this taxonomy.
    156163         *
    157164         * @since 4.7.0
    final class WP_Taxonomy { 
    267274                        'meta_box_cb'           => null,
    268275                        'meta_box_sanitize_cb'  => null,
    269276                        'capabilities'          => array(),
     277                        'sort'                  => false,
    270278                        'rewrite'               => true,
    271279                        'query_var'             => $this->name,
    272280                        'update_count_callback' => '',
  • src/wp-includes/taxonomy.php

    diff --git src/wp-includes/taxonomy.php src/wp-includes/taxonomy.php
    index df828b0..97589c1 100644
    function is_taxonomy_hierarchical( $taxonomy ) { 
    377377 *         @type string $delete_terms Default 'manage_categories'.
    378378 *         @type string $assign_terms Default 'edit_posts'.
    379379 *     }
     380 *     @type bool          $sort                  Whether this taxonomy should remember the order in which terms are
     381 *                                                added to objects. Default false.
    380382 *     @type bool|array    $rewrite {
    381383 *         Triggers the handling of rewrites for this taxonomy. Default true, using $taxonomy as slug. To prevent
    382384 *         rewrite, set to false. To specify rewrite rules, an array can be passed with any of these keys: