WordPress.org

Make WordPress Core

Ticket #18854: zeroise-doc-error.diff

File zeroise-doc-error.diff, 614 bytes (added by trepmal, 7 years ago)
  • wp-includes/formatting.php

     
    11481148 * Add leading zeros when necessary.
    11491149 *
    11501150 * If you set the threshold to '4' and the number is '10', then you will get
    1151  * back '0010'. If you set the number to '4' and the number is '5000', then you
     1151 * back '0010'. If you set the threshold to '4' and the number is '5000', then you
    11521152 * will get back '5000'.
    11531153 *
    11541154 * Uses sprintf to append the amount of zeros based on the $threshold parameter