Automattic / Automattic/VIP-Coding-Standards
Account for upcoming change in WP 5.7 / script tag use
- Ngôn ngữ chính
- PHP
- Star
- 261
- Fork
- 44
- Merge trung bình
- 19 phút
- Pull request đã merge (30 ngày)
- 1
Mô tả
PR https://github.com/WordPress/WordPress-Coding-Standards/pull/1956 in WPCS refers to changes in WP Core which will remove the use of the `` HTML tag in PHP code.
Any existing sniff which looks at the content of inline HTML and takes the `<script>` tag into account will need to be reviewed to see if it can still detect what it is looking for with the "new" way of writing this type of code.
This PR to WP Core gives some good examples of the "new" way of writing this type of code and can be used to for code samples: https://github.com/WordPress/wordpress-develop/pull/498/files
This PR shows the new functionality which will be added to Core: https://github.com/WordPress/wordpress-develop/pull/591
Hướng dẫn đóng góp
Hướng nghiên cứu
Rà soát các sniffs hiện có kiểm tra HTML inline để tìm các thẻ script, sử dụng các PR được liên kết của WPCS và WordPress Core làm tài liệu tham chiếu ban đầu và ví dụ mã. Kiểm tra xem chúng có còn phát hiện các mẫu liên quan sau thay đổi trong WP 5.7 hay không; hoàn thành có nghĩa là các sniffs bị ảnh hưởng xử lý đúng kiểu mới.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- php
- Lĩnh vực
- tooling
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 35/100