Make WordPress Core


Ignore:
Timestamp:
10/02/2023 11:25:35 AM (3 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Remove redundant ignore annotations, take 5.

The VariableAnalysis standard is not used by WP Core.

Follow-up to [50958], [51003], [52049], [52051], [52069], [53072], [54132], [55132], [56363], [56738], [56743], [56751], [56752].

Props jrf.
See #59161.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-controller.php

    r56586 r56753  
    359359     * @return WP_REST_Response Response object.
    360360     */
    361     public function prepare_item_for_response( $post, $request ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
     361    public function prepare_item_for_response( $post, $request ) {
    362362        $raw_config                       = json_decode( $post->post_content, true );
    363363        $is_global_styles_user_theme_json = isset( $raw_config['isGlobalStylesUserThemeJSON'] ) && true === $raw_config['isGlobalStylesUserThemeJSON'];
     
    642642     * @return true|WP_Error True if the request has read access for the item, WP_Error object otherwise.
    643643     */
    644     public function get_theme_items_permissions_check( $request ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
     644    public function get_theme_items_permissions_check( $request ) {
    645645        /*
    646646         * Verify if the current user has edit_theme_options capability.
Note: See TracChangeset for help on using the changeset viewer.