[DT-180]FEATURE: 워드프레스 블로그 플러그인 개선 (v4.0.0)#23
Draft
Conversation
…support - Support Post, Page, Archive page types (previously Post only) - Add new widget positions: Top, In-Article, Bottom 2 (remove Left/Right) - In-Article widget inserts after 2nd paragraph (Post only) - Archive pages load Dable script and bottom widgets via wp_footer - Reorganize Widget Settings UI with category tabs (Post/Page/Archive) - Dynamic sanitize keys for all platform/category/position combos Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Migrate old widget keys to new category-based keys (post/page/archive) - Remove deprecated left/right widget keys - Update version to 4.0.0 and changelog in readme.txt Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Old version only supported Post pages, so migrating bottom widget settings to all categories would cause unintended widgets on Page and Archive pages after update. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
지원 페이지 유형 확대
위젯 영역 변경
</p>뒤 삽입In-Article 위젯 정책
</p>태그를 기준으로 두번째 문단 뒤에 위젯을 삽입한다.<p>태그가 아닌 요소(<div>,<figure>,<blockquote>등)만으로 구성된 글에서는 삽입 위치를 찾지 못해 In-Article 위젯이 렌더링되지 않는다.<p>가 아닌 블록만 사용한 글이 해당됨Widget Setting UI
widget_code_{platform}_{category}_{position}마이그레이션 (v3 → v4)
dable_migrate_from_3_to_4()함수 (lib/migration.php)가plugins_loadedhook에서 자동 실행된다.변환 내용:
widget_code_{platform}_bottomwidget_code_{platform}_post_bottomdisplay_widget_{platform}_bottomdisplay_widget_{platform}_post_bottomwidget_code_{platform}_leftwidget_code_{platform}_right{platform}은responsive,pc,mobile3가지get_sites()순회)Test plan
<p>태그 없는 글에서 위젯이 삽입되지 않는지 확인Jira
DT-180