Ticket #40077: 40077.2.patch
File 40077.2.patch, 562 bytes (added by , 8 years ago) |
---|
-
general-template.php
1860 1860 * @since 1.5.0 1861 1861 * 1862 1862 * @param int $num Number of day. 1863 * @return intDays since the start of the week.1863 * @return double Days since the start of the week. 1864 1864 */ 1865 function calendar_week_mod( $num) {1865 function calendar_week_mod( $num ) { 1866 1866 $base = 7; 1867 return ( $num - $base*floor($num/$base));1867 return ( $num - $base * floor( $num / $base ) ); 1868 1868 } 1869 1869 1870 1870 /**