之前我们写了一个WordPress的采集插件wp-jpost,但是插件默认不支持朴素型固定格式的链接。如下图所示:
所以我们这里想办法把这个bug修复一下。下面记录一下php下获取当前固定链接格式的方法:
<?php if ( get_option('permalink_structure') ) { echo 'permalinks enabled'; }??>
如果这里 permalink_structure
值为空,则表示为 朴素型 固定链接。
all-in-one-seo-pack
domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init
action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/customer/www/ixvps.com/public_html/wp-includes/functions.php on line 6114