• Resolved enforces

    (@enforces)


    I have a problem with og:description. I updated plugin to the newest version and my og:description looks like:

    <meta property=”og:description” content=”WszyscydoskonalewiemyjakwanajestprawidowahigienajamyustnejWanietrwaakcjapromocyjnaColgatewktrejmonaodebradarmowszczoteczkdozbwWarunkiemodbiorudarmowejszczoteczkijestzakupieniedowolnegoproduktuColgatenppyndopukaniaustpastadozbwNaleyzachowadowdzakupuparagonlubfakturawypeniformularziodebraspecjalnykodktryupowaniadoodbiorudarmowejszczoteczkiColgateSlimSoftSzczoteczkmonaodebrawyczniewwybranymgabineciestomatologicznymSzczoteczkaColgateSlimSoftwsklepiekosztujeok14PLNCharakteryzujesi17razycieszymwosiemprzezcoszczotkowaniezbwjestdelikatniejszeCieszewknazapewniajtakelepszydostpdowszystkichszczelinmidzyzbowychiobszarwwzduliniidziseDziekiczemuatwiejjestusunresztkipokarmwipytknazbntworzckamiePodczasodbieraniadarmowejszczoteczkidozbwudentystymonaskorzystazdarmowegoprzegldustanuzbwAbyskorzystaztejopcjinaleyumwisiwgabinecienatakwizytPromocjarozdawaniadarmowychszczoteczekdozbwjestograniczonaczasowoitrwado10maja2015rstrongFirmaColgatestrongColgatePalmoliveCompanytoamerykaskimidzynarodowykoncernprodukujcyartykuygospodarstwadomowegomydodetergentypastyiszczoteczkidozbwProwadzidziaalnowponad200krajachnacaymwiecieFirmazostaazaoonaw1806rokuajejgwnasiedzibamiecisiwNowymJorkuObecniezaliczanajestdowiodcychproducentwzkategoriizdrowiajamyustnejpielgnacjiciaaorazrodkwczystoci”/>

    link to source: http://zakupersi.com/promocja/darmowa-szczoteczka-do-zebow-colgate/

    How resolve this problem?

    https://wordpress.org/plugins/ultimate-social-media-icons/

Viewing 15 replies - 1 through 15 (of 28 total)
  • Plugin Author socialdude

    (@socialdude)

    Thanks for reporting this enforces, let us look into this.

    Thread Starter enforces

    (@enforces)

    Ok. πŸ™‚

    Plugin Author socialdude

    (@socialdude)

    Hi enforces,

    I did some investigations.

    The og:description property are set in a meta tag for the purpose of facebook share/like of the blog. What we do is we get the content and then encode it first and then we write it on og:description. At the time of setting it on og:description what we to remind that neither and single quote or double quote should remain in the string. That’s the logic behind it.

    Could you please:

    1) Open the ultimate_social_media_icons.php file and search for this function: sfsi_string_sanitize()

    2) Please go to where this function is and replace that whole function with below function:

    function sfsi_string_sanitize($s) {
    $result = preg_replace(“/[^a-zA-Z0-9]+/”, ” “, html_entity_decode($s, ENT_QUOTES));
    return $result;
    }

    Did that work?

    Rgds, John

    Thread Starter enforces

    (@enforces)

    Doesn’t work.

    Fatal error: Call to undefined function string_sanitize() in /home/kovalski/domains/zakupersi.com/public_html/wp-content/plugins/ultimate-social-media-icons/ultimate_social_media_icons.php on line 62

    Plugin Author socialdude

    (@socialdude)

    Ok let us check

    Plugin Author socialdude

    (@socialdude)

    Ok, it seems that you placed them in the wrong place. Could you please double check?

    Thread Starter enforces

    (@enforces)

    In ultimate_social_media_icons.php I don’t have got a function “sfsi_string_sanitize()”

    In this file (at the end of this file) I see “string_sanitize($s)”:

    //sanitizing values
    function string_sanitize($s) {
    $result = preg_replace(“/[^a-zA-Z0-9]+/”, “”, html_entity_decode($s, ENT_QUOTES));
    return $result;
    }

    Plugin Author socialdude

    (@socialdude)

    Could you please replace the function name that I gave you with this name string_sanitize?

    Thread Starter enforces

    (@enforces)

    It’s works. It’s better but the description is without polish diacritics letters.

    Plugin Author socialdude

    (@socialdude)

    Ok, cool. Regarding the Polish letters, I’ll put that onto our enhancement list.

    RS-Systems

    (@rs-systems)

    Hi, had the same Problem on a blog… problem is, that the plugin add the og metas per default. an option to disable would be great, because a lot of people use yoast seo or other plugins, which are able to set manual og:description and other metas per post/page or use the excerpt and not the whole content, to generate the og metas. for now i removed the add_action in line 55 to solve the problem

    Regards,
    RS

    Plugin Author socialdude

    (@socialdude)

    Ok, thx RS-Systems. We’ll upload a new plugin shortly which should have it fixed.

    RS-Systems

    (@rs-systems)

    oh and if addthis is deactivated as button, it shouldnt load it under the post too. showing all active icons from the widget but with smaller images would be better and the page would load faster πŸ™‚

    RS

    Plugin Author socialdude

    (@socialdude)

    Thanks RS, but not sure if I understand. If you deactivated the addthis-icon, it shouldn’t be loaded below your posts. Does it still? What’s your site url?

    Maggzy

    (@maggzy)

    Hi, I just tried to share a post on my website and the description is still all without any spaces. I don’t see any update that is offered to the plugin in my wp admin either.

Viewing 15 replies - 1 through 15 (of 28 total)
  • The topic ‘Og:descritpion without space after plugin update’ is closed to new replies.