Fermé

Wordpress: Stop sanitize_post from stripping php tag on import

When I import my WXR XML file it appears that wp_insert_post (or another function) is applying filters to strip "<?php" tags that I need to keep in my content.

I have searched the various wp-include php files to locate:

wp_insert_post

sanitize_post

wp_strip_all_tags

but have no clue as to what files to edit -- and what edits to make to keep from stripping the php tags. I would like to keep some security in place but need the php tags to remain. earlier versions of Wordpress did not have any problem with this.

If you know what to do, this should take less than 10 minutes to provide the code for me to add/edit the Wordpress php files.

Compétences : PHP, WordPress

Voir plus : php tags, lt security, wordpress import, security tags, php tag, post content wordpress php, tag code, import problem, security tag, import xml wordpress php, import xml files, xml wordpress php, wordpress php xml, import files, content import, wordpress import update post, xml php import, import large post wordpress, wordpress xml file, edits wordpress, import wordpress content, wordpress post content file, import php code wordpress, function edit php, wordpress import content

Concernant l'employeur :
( 0 commentaires ) Thailand

N° du projet : #2395568

11 freelance ont fait une offre moyenne de 74 $ pour ce travail

toinnisfree

quick pro help. ftp and escrow required.

50 $ USD en 1 jour
(520 Commentaires)
7.8
sureshdevi

I can fix this problem of strip php tag during xml import in wordpress. I can complete this work in 24 hours of time.

34 $ USD en 1 jour
(527 Commentaires)
7.3
gopalvora

ready to start thanks

30 $ USD en 1 jour
(130 Commentaires)
6.7
mtthardy4

Expert here check pm thank nitya

30 $ USD en 1 jour
(136 Commentaires)
6.6
itzybit

Hi, My name is Clarence and I am a web developer with extensive experience customizing Wordpress PHP core files for many clients. I can work on this project immediately and can complete this project quickly. I look Plus

50 $ USD en 1 jour
(4 Commentaires)
4.6
Bistechsupport

Hi, This is jeni from bistechsupport. For more details please visit the private message. Thanks Jeni Bistechsupport

150 $ USD en 10 jours
(24 Commentaires)
4.7
MolikJain

We can assure you that with the help of experienced development team, we will provide you high level of satisfaction and support to gain your confidence. Please check your PMB . Thanks

40 $ USD en 2 jours
(6 Commentaires)
4.2
netbasevn

plz contact me, I will help you.

100 $ USD en 2 jours
(2 Commentaires)
3.8
technoeye

lets start

30 $ USD en 1 jour
(4 Commentaires)
3.0
bitacre

I've dealt with this exact problem myself. I found the best solution was to add a custom function that alters the post sanitize filter to leave this information alone. I can do this for you in a few hours.

30 $ USD en 1 jour
(2 Commentaires)
2.6
UdG4R2Es9

Custom software development (<b><i>Removed by Admin</i></b>)

250 $ USD en 1 jour
(0 Commentaires)
0.0
phpmasta911

Funny how all of these people bidding on this failed to mention that there is a wordpress plugin that does exactly what your looking for without altering the core files. You should NEVER EVER alter your core because Plus

50 $ USD en 1 jour
(0 Commentaires)
0.0