Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#39488 closed defect (bug) (fixed)

Twenty Seventeen: Type and name in @param tags are the wrong way around

Reported by: ocean90 Owned by: SergeyBiryukov
Priority: normal Milestone: 4.8
Component: Bundled Theme Version: 4.7
Severity: normal Keywords: good-first-bug has-patch
Cc: Focuses: docs

Description

Example:

<?php
/**
 * Filter number of front page sections in Twenty Seventeen.
 *
 * @since Twenty Seventeen 1.0
 *
 * @param $num_sections integer
 */
$num_sections = apply_filters( 'twentyseventeen_front_page_sections', 4 );

integer should be int and the whole tag should be @param int $num_sections <description>.

Attachments (5)

39488.patch​ (1.7 KB ) - added by ketuchetan 10 years ago.
Added patch
39488.2.patch​ (1.6 KB ) - added by priyankabehera155 10 years ago.
Description added
39488.3.patch​ (1.7 KB ) - added by ketuchetan 10 years ago.
39488.4.patch​ (1.7 KB ) - added by Jaydeep Rami 10 years ago.
added the param for the twentyseventeen_content_width, twentyseventeen_custom_colors_saturation and twentyseventeen_social_links_icons
39488.5.patch​ (1.7 KB ) - added by BharatKambariya 10 years ago.
Added twentyseventeen_content_width, twentyseventeen_custom_colors_saturation and twentyseventeen_social_links_icons

Download all attachments as: .zip

Change History (11)

@ketuchetan
10 years ago

Added patch

#1 @ketuchetan
10 years ago

  • Keywords has-patch added; needs-patch removed

I have modified the documentation @param

#2 @SergeyBiryukov
10 years ago

  • Owner set to SergeyBiryukov
  • Resolution → fixed
  • Status new → closed

In 39732:

Twenty Seventeen: Correct @param entry for twentyseventeen_front_page_sections filter.

Props ketuchetan, priyankabehera155.
Fixes #39488.

#3 @ocean90
10 years ago

  • Keywords needs-patch added; has-patch removed
  • Resolution fixed
  • Status closed → reopened

There is also twentyseventeen_content_width, twentyseventeen_custom_colors_saturation and twentyseventeen_social_links_icons.

@Jaydeep Rami
10 years ago

added the param for the twentyseventeen_content_width, twentyseventeen_custom_colors_saturation and twentyseventeen_social_links_icons

#4 @Jaydeep Rami
10 years ago

  • Keywords has-patch added; needs-patch removed

Added the patch for the twentyseventeen_content_width, twentyseventeen_custom_colors_saturation and twentyseventeen_social_links_icons

@BharatKambariya
10 years ago

Added twentyseventeen_content_width, twentyseventeen_custom_colors_saturation and twentyseventeen_social_links_icons

#5 @BharatKambariya
10 years ago

Added modified patch

#6 @SergeyBiryukov
10 years ago

  • Resolution → fixed
  • Status reopened → closed

In 39733:

Twenty Seventeen: Correct @param entries for twentyseventeen_content_width, twentyseventeen_custom_colors_saturation and twentyseventeen_social_links_icons filters.

Props Jaydeep Rami, BharatKambariya.
Fixes #39488.

Note: See TracTickets for help on using tickets.