【post_type】custom_css
【post_type】customize_changeset
【post_type】oembed_cache
【post_type】attachment 上传文件
【post_type】page 页面
【post_type】post 文章
【post_type】nav_menu_item 菜单名称
【post_type】revision 修订
【post_status】draft 草稿
【post_status】inherit 继承
【post_status】private 私有的
【post_status】publish 发布
https://it.hsx.ltd/?p=156
https://it.hsx.ltd/?p=257
https://it.hsx.ltd/?p=368
https://it.hsx.ltd/?p=370
https://it.hsx.ltd/?p=373
https://it.hsx.ltd/?p=406
https://it.hsx.ltd/?p=430
https://it.hsx.ltd/?p=435
https://it.hsx.ltd/?p=437
https://it.hsx.ltd/?p=439
https://it.hsx.ltd/?p=441
https://it.hsx.ltd/?p=442
https://it.hsx.ltd/?p=468
https://it.hsx.ltd/?p=855
https://it.hsx.ltd/?p=861
https://it.hsx.ltd/?p=919
https://it.hsx.ltd/?p=989
https://it.hsx.ltd/?p=998
https://it.hsx.ltd/?p=999
add_filter('upload_mimes', 'custom_upload_mimes');
function custom_upload_mimes ( $existing_mimes=array() ) {
unset ($existing_mimes);//禁止上传任何文件
$existing_mimes['jpg|jpeg|gif|png']='image/image';//允许用户上传jpg,gif,png文件
return $existing_mimes;
}
把<blockquote>代码也作了替换处理。
将数据库里 <blockquote>
替换为 <pre class="line-numbers"><code class="language-css">
将数据库里 </blockquote>
替换为 </code></pre>
涉及文件:
https://it.hsx.ltd/?p=1
https://it.hsx.ltd/?page_id=65
https://it.hsx.ltd/?page_id=70
https://it.hsx.ltd/?page_id=75
https://it.hsx.ltd/?p=92
https://it.hsx.ltd/?p=93
https://it.hsx.ltd/?p=94
https://it.hsx.ltd/?p=95
https://it.hsx.ltd/?p=98
https://it.hsx.ltd/?p=202
https://it.hsx.ltd/?p=298
https://it.hsx.ltd/?p=424
https://it.hsx.ltd/?p=934
https://it.hsx.ltd/?p=940
2023-07-04又作了替换
替换
<pre class="line-numbers"><code class="language-css"> 【 </code></pre> 不用换 】
为
<pre class="io-enlighter-pre"><code class="code" data-enlighter-language="php" data-enlighter-linenumbers="true" data-enlighter-lineoffset="" data-enlighter-highlight="">
替换 【】
<pre class="EnlighterJSRAW" data-enlighter-language="php"> 【 </pre> 换成 </code></pre> 】
为
<pre class="io-enlighter-pre"><code class="code" data-enlighter-language="php" data-enlighter-linenumbers="true" data-enlighter-lineoffset="" data-enlighter-highlight="">