Make WordPress Core


Ignore:
Timestamp:
03/03/2026 01:10:51 PM (3 months ago)
Author:
jonsurrell
Message:

HTML API: Exclude internal classes and methods from documentation.

Add @ignore annotations to internal HTML API methods and classes to exclude them from generated documentation. The HTML API relies heavily on internal methods and classes and they create a lot of noise in documentation.

Developed in https://github.com/WordPress/wordpress-develop/pull/11078.

Props jonsurrell, westonruter.
See #64224.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/html-api/class-wp-html-tag-processor.php

    r61754 r61793  
    946946     *
    947947     * @since 6.5.0
    948      *
    949      * @access private
     948     * @ignore
    950949     *
    951950     * @return bool Whether a token was parsed.
     
    13831382     *
    13841383     * @since 6.3.2
     1384     * @ignore
    13851385     *
    13861386     * @see https://html.spec.whatwg.org/#generic-raw-text-element-parsing-algorithm
     
    14021402     *
    14031403     * @since 6.2.0
     1404     * @ignore
    14041405     *
    14051406     * @see https://html.spec.whatwg.org/multipage/parsing.html#rcdata-state
     
    14931494     *
    14941495     * @since 6.2.0
     1496     * @ignore
    14951497     *
    14961498     * @return bool Whether the script tag was closed before the end of the document.
     
    17021704     * @since 6.2.0
    17031705     * @since 6.2.1 Support abruptly-closed comments, invalid-tag-closer-comments, and empty elements.
     1706     * @ignore
    17041707     *
    17051708     * @return bool Whether a tag was found before the end of the document.
     
    21232126     *
    21242127     * @since 6.2.0
     2128     * @ignore
    21252129     *
    21262130     * @return bool Whether an attribute was found before the end of the document.
     
    22602264     *
    22612265     * @since 6.2.0
     2266     * @ignore
    22622267     */
    22632268    private function skip_whitespace(): void {
     
    22692274     *
    22702275     * @since 6.2.0
     2276     * @ignore
    22712277     */
    22722278    private function after_tag(): void {
     
    23282334     *
    23292335     * @since 6.2.0
     2336     * @ignore
    23302337     *
    23312338     * @see WP_HTML_Tag_Processor::$lexical_updates
     
    24912498     * @since 6.2.1 Accumulates shift for internal cursor and passed pointer.
    24922499     * @since 6.3.0 Invalidate any bookmarks whose targets are overwritten.
     2500     * @ignore
    24932501     *
    24942502     * @param int $shift_this_point Accumulate and return shift for this position.
     
    26482656     *
    26492657     * @since 6.2.0
     2658     * @ignore
    26502659     *
    26512660     * @param WP_HTML_Text_Replacement $a First attribute update.
     
    26812690     *
    26822691     * @since 6.2.0
     2692     * @ignore
    26832693     *
    26842694     * @param string $comparable_name The attribute name in its comparable form.
     
    39273937     *
    39283938     * @since 7.0.0
     3939     * @ignore
    39293940     *
    39303941     * @return 'javascript'|'json'|null Type of script element content if matched and recognized.
     
    42004211     *
    42014212     * @since 7.0.0
     4213     * @ignore
    42024214     *
    42034215     * @param string $sourcecode Raw contents intended to be serialized into an HTML SCRIPT element.
     
    46654677     *
    46664678     * @since 6.2.0
     4679     * @ignore
    46674680     *
    46684681     * @param array|string|null $query {
     
    47314744     *
    47324745     * @since 6.2.0
     4746     * @ignore
    47334747     *
    47344748     * @return bool Whether the given tag and its attribute match the search criteria.
Note: See TracChangeset for help on using the changeset viewer.