File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,12 @@ function lb_time_since( $older_date, $comment_date = false ) {
7373 return $ output ;
7474}
7575
76+ //后台提示信息
77+ function remove_footer_admin () {
78+ echo 'Theme <b style="letter-spacing:1px;">Tony</b> | Designed with <img draggable="false" class="emoji" alt="love" src="https://s.w.org/images/core/emoji/11/svg/2764.svg"> by <a href="https://www.ouorz.com" target="_blank">TonyHe</a> | 当前 <a href="https://github.com/HelipengTony/tony/releases" target="_blank"> ' .wp_get_theme ()->get ( 'Version ' ).'</a> 版本</p> ' ;
79+ }
80+ add_filter ('admin_footer_text ' , 'remove_footer_admin ' );
81+
7682// 评论添加@ by someone
7783function comment_add_at ( $ comment_text , $ comment = '' ) {
7884 if ( $ comment ->comment_parent > 0 ) {
@@ -324,6 +330,7 @@ function newgravatar($avatar_defaults) {
324330 return $ avatar_defaults ;
325331}
326332
333+ //标题描述
327334function get_tony_ms (){
328335 if (get_option ('king_ms ' ) && !get_option ('king_title_ms ' )){
329336 echo get_option ('king_ms ' );
@@ -333,5 +340,4 @@ function get_tony_ms(){
333340 echo '未设置描述 ' ;
334341 }
335342}
336-
337343?>
You can’t perform that action at this time.
0 commit comments