captaincore/lib/remote-scripts/rewrite-prep
2018-10-15 23:40:51 -04:00

12 lines
218 B
Bash
Executable file

#!/usr/bin/env bash
#
# Preps permalink if needed
#
# `rewrite-prep`
#
if [[ $(wp option get permalink_structure) == '' ]]; then
# Update 'plain' permalink to 'post name'
wp rewrite structure '/%postname%/'
fi