Plugin Directory

Changeset 3407685


Ignore:
Timestamp:
12/02/2025 09:03:51 AM (4 months ago)
Author:
instarank
Message:

fix: address WordPress plugin checker errors for the_content filter

  • Added phpcs:ignore comments for WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound
  • Using WordPress core 'the_content' filter is expected behavior, not a custom hook
File:
1 edited

Legend:

Unmodified
Added
Removed
  • instarank/trunk/api/endpoints.php

    r3407673 r3407685  
    46604660                setup_postdata($post);
    46614661
    4662                 // Get the rendered content
     4662                // Get the rendered content (using WordPress core filter)
     4663                // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Using WP core filter
    46634664                $content = apply_filters('the_content', $post->post_content);
    46644665
     
    47964797        $page_url = get_permalink($post->ID);
    47974798
    4798         // Build full HTML
     4799        // Build full HTML (using WordPress core filter)
    47994800        setup_postdata($post);
     4801        // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Using WP core filter
    48004802        $content = apply_filters('the_content', $post->post_content);
    48014803        $html = $this->build_page_html($post, $content, $meta);
Note: See TracChangeset for help on using the changeset viewer.