Changeset 56753
- Timestamp:
- 10/02/2023 11:25:35 AM (12 months ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-supports/dimensions.php
r56709 r56753 51 51 * @return array Block dimensions CSS classes and inline styles. 52 52 */ 53 function wp_apply_dimensions_support( $block_type, $block_attributes ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable53 function wp_apply_dimensions_support( $block_type, $block_attributes ) { 54 54 if ( wp_should_skip_block_supports_serialization( $block_type, 'dimensions' ) ) { 55 55 return array(); -
trunk/src/wp-includes/blocks.php
r56744 r56753 550 550 * @return string Returns the block content. 551 551 */ 552 $settings['render_callback'] = static function ( $attributes, $content, $block ) use ( $template_path ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable552 $settings['render_callback'] = static function ( $attributes, $content, $block ) use ( $template_path ) { 553 553 ob_start(); 554 554 require $template_path; -
trunk/src/wp-includes/class-wp-theme-json-schema.php
r55725 r56753 141 141 */ 142 142 private static function unset_setting_by_path( &$settings, $path ) { 143 $tmp_settings = &$settings; // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable143 $tmp_settings = &$settings; 144 144 $last_key = array_pop( $path ); 145 145 foreach ( $path as $key ) { -
trunk/src/wp-includes/functions.php
r56748 r56753 5080 5080 $input_array[ $path_element ] = array(); 5081 5081 } 5082 $input_array = &$input_array[ $path_element ]; // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.VariableRedeclaration5082 $input_array = &$input_array[ $path_element ]; 5083 5083 } 5084 5084 -
trunk/src/wp-includes/html-api/class-wp-html-open-elements.php
r56380 r56753 111 111 * @return bool Whether the element was found in a specific scope. 112 112 */ 113 public function has_element_in_specific_scope( $tag_name, $termination_list ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable113 public function has_element_in_specific_scope( $tag_name, $termination_list ) { 114 114 foreach ( $this->walk_up() as $node ) { 115 115 if ( $node->node_name === $tag_name ) { … … 168 168 * @return bool Whether given element is in scope. 169 169 */ 170 public function has_element_in_list_item_scope( $tag_name ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable170 public function has_element_in_list_item_scope( $tag_name ) { 171 171 throw new WP_HTML_Unsupported_Exception( 'Cannot process elements depending on list item scope.' ); 172 172 … … 200 200 * @return bool Whether given element is in scope. 201 201 */ 202 public function has_element_in_table_scope( $tag_name ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable202 public function has_element_in_table_scope( $tag_name ) { 203 203 throw new WP_HTML_Unsupported_Exception( 'Cannot process elements depending on table scope.' ); 204 204 … … 218 218 * @return bool Whether given element is in scope. 219 219 */ 220 public function has_element_in_select_scope( $tag_name ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable220 public function has_element_in_select_scope( $tag_name ) { 221 221 throw new WP_HTML_Unsupported_Exception( 'Cannot process elements depending on select scope.' ); 222 222 -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-controller.php
r56586 r56753 359 359 * @return WP_REST_Response Response object. 360 360 */ 361 public function prepare_item_for_response( $post, $request ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable361 public function prepare_item_for_response( $post, $request ) { 362 362 $raw_config = json_decode( $post->post_content, true ); 363 363 $is_global_styles_user_theme_json = isset( $raw_config['isGlobalStylesUserThemeJSON'] ) && true === $raw_config['isGlobalStylesUserThemeJSON']; … … 642 642 * @return true|WP_Error True if the request has read access for the item, WP_Error object otherwise. 643 643 */ 644 public function get_theme_items_permissions_check( $request ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable644 public function get_theme_items_permissions_check( $request ) { 645 645 /* 646 646 * Verify if the current user has edit_theme_options capability. -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-pattern-directory-controller.php
r56586 r56753 107 107 108 108 $query_args['locale'] = get_user_locale(); 109 $query_args['wp-version'] = $wp_version; // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UndefinedVariable -- it's defined in `version.php` above.109 $query_args['wp-version'] = $wp_version; 110 110 $query_args['pattern-categories'] = isset( $request['category'] ) ? $request['category'] : false; 111 111 $query_args['pattern-keywords'] = isset( $request['keyword'] ) ? $request['keyword'] : false; -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php
r56248 r56753 634 634 * @return WP_REST_Response Response object. 635 635 */ 636 public function prepare_item_for_response( $item, $request ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable636 public function prepare_item_for_response( $item, $request ) { 637 637 // Restores the more descriptive, specific name for use within this method. 638 638 $template = $item;
Note: See TracChangeset
for help on using the changeset viewer.