Plugin Directory

Changeset 2318287


Ignore:
Timestamp:
06/04/2020 03:22:21 PM (6 years ago)
Author:
pubexchange
Message:

Updating meta tags

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pubexchange/trunk/pubexchange_widget.php

    r2069977 r2318287  
    44 * Plugin URI: https://www.pubexchange.com
    55 * Description: PubExchange
    6  * Version: 2.0.4
     6 * Version: 2.0.5
    77 * Author: PubExchange
    88 */
     
    103103
    104104                if (!empty($url)) {
    105                     echo "<meta name='pubexchange:image' content='".$url."'>\n";
     105                    echo "<meta name=\"pubexchange:image\" content=\"".$url."\">\n";
    106106                }
    107107                if ($headline = get_the_title( $post->ID )) {
    108                     echo "<meta name='pubexchange:title' content='".substr(addslashes($headline),0,255)."'>\n";
     108                    echo "<meta name=\"pubexchange:title\" content=\"".substr(addcslashes($headline, '"\\/'),0,255)."\">\n";
    109109                }
    110110            }
Note: See TracChangeset for help on using the changeset viewer.