Ticket #21220: 21220.patch

File 21220.patch, 3.0 KB (added by c3mdigital, 10 months ago)
  • wp-includes/post-template.php

     
    231231 * @since 3.1.0 
    232232 * @access private 
    233233 * @param array $match Match array from preg_replace_callback 
    234  * @returns string 
     234 * @return string 
    235235 */ 
    236236function _convert_urlencoded_to_entities( $match ) { 
    237237        return '&#' . base_convert( $match[1], 16, 10 ) . ';'; 
     
    865865 * @since 2.7.0 
    866866 * 
    867867 * @param array|string $args 
     868 * @return string html menu 
    868869 */ 
    869870function wp_page_menu( $args = array() ) { 
    870871        $defaults = array('sort_column' => 'menu_order, post_title', 'menu_class' => 'menu', 'echo' => true, 'link_before' => '', 'link_after' => ''); 
     
    978979         * 
    979980         * @param string $output Passed by reference. Used to append additional content. 
    980981         * @param int $depth Depth of page. Used for padding. 
     982         * @param array $args 
    981983         */ 
    982984        function start_lvl( &$output, $depth = 0, $args = array() ) { 
    983985                $indent = str_repeat("\t", $depth); 
     
    990992         * 
    991993         * @param string $output Passed by reference. Used to append additional content. 
    992994         * @param int $depth Depth of page. Used for padding. 
     995         * @param array $args 
    993996         */ 
    994997        function end_lvl( &$output, $depth = 0, $args = array() ) { 
    995998                $indent = str_repeat("\t", $depth); 
     
    10481051         * @param string $output Passed by reference. Used to append additional content. 
    10491052         * @param object $page Page data object. Not used. 
    10501053         * @param int $depth Depth of page. Not Used. 
     1054         * @param array $args 
    10511055         */ 
    10521056        function end_el( &$output, $page, $depth = 0, $args = array() ) { 
    10531057                $output .= "</li>\n"; 
     
    10861090         * @param object $page Page data object. 
    10871091         * @param int $depth Depth of page in reference to parent pages. Used for padding. 
    10881092         * @param array $args Uses 'selected' argument for selected page to set selected HTML attribute for option element. 
     1093         * @param int $id 
    10891094         */ 
    10901095        function start_el(&$output, $page, $depth, $args, $id = 0) { 
    10911096                $pad = str_repeat('&nbsp;', $depth * 3); 
     
    11341139 * @param string $size Optional, default is 'thumbnail'. Size of image, either array or string. 
    11351140 * @param bool $permalink Optional, default is false. Whether to add permalink to image. 
    11361141 * @param bool $icon Optional, default is false. Whether to include icon. 
    1137  * @param string $text Optional, default is false. If string, then will be link text. 
     1142 * @param string|bool $text Optional, default is false. If string, then will be link text. 
    11381143 * @return string HTML content. 
    11391144 */ 
    11401145function wp_get_attachment_link( $id = 0, $size = 'thumbnail', $permalink = false, $icon = false, $text = false ) { 
     
    12451250 * 
    12461251 * @since 3.4.0 
    12471252 * 
    1248  * @param int $id The page ID to check. Defaults to the current post, when used in the loop. 
     1253 * @param int $post_id The page ID to check. Defaults to the current post, when used in the loop. 
    12491254 * @return string|bool Page template filename. Returns an empty string when the default page template 
    12501255 *      is in use. Returns false if the post is not a page. 
    12511256 */