Mavuto ndi Wolemba Wamoyo ndi WordPress

Posachedwapa, Wolemba Wamoyo anayamba kuyambitsa mavuto, pazifukwa ziwiri:

1. Pamene nkhani yatsopano yakhazikitsidwa, kuikamo imatumiza uthenga wolakwika ngakhale nkhaniyo itayidwa. Ndiye kuyesa kachiwiri kulenga nkhani yatsopano kotero kuti panthawi yozindikira nkhaniyo, pali kale nkhani zingapo zofalitsidwa ndi dzina lomwelo ndi pansipa zikuwoneka kuti sizikutumizira chirichonse.

2. Ngati nkhani yomwe yatulutsidwa yatsegulidwa, ikadzasinthidwa, imatumizira uthenga wolakwika ngakhale kuti zolembazo zakhala zikuchitika mu mawonekedwe.

Vuto lonse liri mu kusintha kwa fayilo mzere kalasi-wp-xmlrpc-server.php zomwe sizitumiza uthenga wa reply Chimodzimodzinso chimachitika pamene mukuchichita kuchokera ku nsanja iliyonse yakutali kudzera mu njira ya metaWeblog monga momwe zilili Blogsy kuchokera ku iPad / iPhone.

Uthenga ukuwoneka ngati uwu:

Kuyankha kwa njira ya metaWeblog.editPost yomwe imalandira kuchokera ku seva ya blog siyiyenela: Chidziwitso chosavomerezeka chinachokera ku seva ya XmlRpc.

vuto lolemba wolemba

Chabwino, zotsatira zake ndi izi: Muyenera kulowa kudzera pa canelini kapena kugwira ntchito ku fayilo /public_html/wp-includes/class-wp-xmlrpc-server.php ndipo kumeneko kufufuza mzere wa 3948 wa code:

ngati (ndi_ndipo (ndalama zosakaniza)) {

zowonjezera ($ attachments monga $ file) {

ngati (chingwe ($ post_content, $ file-> kutsogolera) == bodza)

$ wpdb-> zosintha ($ wpdb-> zolemba, mndandanda ('post_parent' => $ post_ID), mndandanda ('ID' => $ file-> ID));

Iyenera kusinthidwa kuti:

ngati (ndi_ndipo (ndalama zosakaniza)) {

zowonjezera ($ attachments monga $ file) {

ngati ($ file-> kutsogolera &&! ($ file-> guid == NULL))

ngati (chingwe ($ post_content, $ file-> kutsogolera) == bodza)

$ wpdb-> zosintha ($ wpdb-> zolemba, mndandanda ('post_parent' => $ post_ID), mndandanda ('ID' => $ file-> ID));

vuto lolemba wolemba

Ngati zakhazikika, zomwe tachita ndi kuwonjezera mzere wolembedwa wofiira.

Ndili vutoli liyenera kuthetsedwa. Ndi chisamaliro kuti pamene kukonzanso WordPress n'kofunikira kuti uchite izo mpaka atathana nazo.

Siyani yankho

Anu email sati lofalitsidwa.

Tsambali likugwiritsa ntchito Akismet kuchepetsa spam. Phunzirani momwe deta yanu ikufotokozera.