Plugin Directory

Changeset 2297841


Ignore:
Timestamp:
05/04/2020 04:06:46 PM (6 years ago)
Author:
deano1987
Message:

1.5.2

  • escaping breadcrumb names in schema to avoid errors when text has quotes
Location:
schema-breadcrumbs
Files:
6 added
2 edited

Legend:

Unmodified
Added
Removed
  • schema-breadcrumbs/trunk/readme.txt

    r2280204 r2297841  
    44Tags: breadcrumb, schema, semantic, google, seo, RDFa, semantic, breadcrumbs
    55Requires at least: 2.2
    6 Tested up to: 5.4
    7 stable tag: 1.5.1
     6Tested up to: 5.4.1
     7stable tag: 1.5.2
    88
    99Very easily add breadcrumbs to your site with valid Schema Breadcrumb Markup, this plugin is also a drop-in replacement for RDFa Breadcrumb, just install this and deactivate RDFa Breadcrumb.
     
    3131
    3232== Changelog ==
     33
     34= 1.5.2 =
     35* escaping breadcrumb names in schema to avoid errors when text has quotes
    3336
    3437= 1.5.1 =
  • schema-breadcrumbs/trunk/schema-breadcrumbs.php

    r2280204 r2297841  
    33Plugin URI:   http://webdesires.co.uk
    44Description:  Outputs a fully Schema valid breadcrumb
    5 Version:      1.5.1
     5Version:      1.5.2
    66Author:       Dean Williams
    77Author URI:   http://deano.me
     
    262262                        "@id": "'.$actual_link.'",
    263263                            "url": "'.$actual_link.'",
    264                         "name": "'.$input.'"
     264                        "name": "'.addslashes($input).'"
    265265                        }
    266266                      }';
     
    292292                        "@id": "'.$actual_link.'",
    293293                            "url": "'.$actual_link.'",
    294                         "name": "'.$input.'"
     294                        "name": "'.addslashes($input).'"
    295295                        }
    296296                      }';
     
    357357                "@id": "'.get_permalink(get_option('page_on_front')).'",
    358358                    "url": "'.get_permalink(get_option('page_on_front')).'",
    359                 "name": "'.$opt['home'].'"
     359                "name": "'.addslashes($opt['home']).'"
    360360                }
    361361              }';
     
    426426                        "@id": "'.$page_url.'",
    427427                            "url": "'.$page_url.'",
    428                         "name": "'.$page_name.'"
     428                        "name": "'.addslashes($page_name).'"
    429429                        }
    430430                      }';
     
    459459                        "@id": "'.get_bloginfo('url').'",
    460460                            "url": "'.get_bloginfo('url').'",
    461                         "name": "'.$opt['home'].'"
     461                        "name": "'.addslashes($opt['home']).'"
    462462                        }
    463463                      }';
     
    530530                            "@id": "'.get_term_link($category->slug, $obj->taxonomies[0]).'",
    531531                            "url": "'.get_term_link($category->slug, $obj->taxonomies[0]).'",
    532                             "name": "'.$category->name.'"
     532                            "name": "'.addslashes($category->name).'"
    533533                            }
    534534                          }';
     
    590590                                "@id": "'.get_category_link($cat->term_id).'",
    591591                                    "url": "'.get_category_link($cat->term_id).'",
    592                                 "name": "'.$cat->name.'"
     592                                "name": "'.addslashes($cat->name).'"
    593593                                }
    594594                              }';
     
    602602                                "@id": "'.get_category_link($cat->term_id).'",
    603603                                    "url": "'.get_category_link($cat->term_id).'",
    604                                 "name": "'.$cat->name.'"
     604                                "name": "'.addslashes($cat->name).'"
    605605                                }
    606606                              }';
     
    690690                        "@id": "'.$linker.$link['url'].'",
    691691                            "url": "'.$linker.$link['url'].'",
    692                         "name": "'.$link['title'].'"
     692                        "name": "'.addslashes($link['title']).'"
    693693                        }
    694694                      }';
Note: See TracChangeset for help on using the changeset viewer.