WordPress 업데이트 후 할 일
Posted by 마냥 on the 6th of February, 2021 at 10:24 pm under 컴퓨터. This post has one comment.Permalink로 글 제목을 그대로 쓰고 있다. 한글로 쓴 제목들도 다행히 잘 동작한다. 그런데 어느 버전부터인지 잘 기억이 안나지만 WordPress가 permalink 만들 때 한글을 제거하고 있다.🤔 도대체 어디서 지우나 javascript를 뒤져서 찾았다.
안타깝게도 plugin이나 다른 방법으로 패치를 적용할 수 없어서 업데이트 할 때마다 직접 고쳐야 한다.
wp-includes/js/dist/editor.min.js 파일에서 아래 코드 제거
.replace(/[^\w-]+/g,"")
Submit Comment
The URI to TrackBack this entry is:
https://bmp.pe.kr/blog/index.php/2021/02/06/wordpress-%ec%97%85%eb%8d%b0%ec%9d%b4%ed%8a%b8-%ed%9b%84-%ed%95%a0-%ec%9d%bc/trackback/