Plugin Directory

Changeset 2683944


Ignore:
Timestamp:
02/23/2022 06:32:27 PM (4 years ago)
Author:
seomantis
Message:

minor search console bug fixes

Location:
seo-links-interlinking
Files:
42 added
3 edited

Legend:

Unmodified
Added
Removed
  • seo-links-interlinking/trunk/readme.txt

    r2682042 r2683944  
    55Requires at least: 4.7
    66Tested up to: 5.8
    7 Stable tag: 1.5.4
     7Stable tag: 1.5.5
    88Requires PHP: 7.1
    99License: GPLv2 or later
     
    2626
    2727== Upgrade Notice ==
     28
     29= 1.5.5 =
     30Fix regex
    2831
    2932= 1.5.4 =
  • seo-links-interlinking/trunk/scdata.php

    r2682042 r2683944  
    66 * Author: WP SEO Plugins
    77 * Author URI: https://wpseoplugins.org/
    8  * Version: 1.5.4
     8 * Version: 1.5.5
    99 */
    1010header('Content-Type: text/html; charset=utf-8');
     
    3232define( 'SEOLI_SITE_URL', ( SEOLI_SERVER_PORT == 80 ? 'http://' : 'https://' ) . SEOLI_SERVER_NAME );
    3333define( 'SEOLI_SERVER_REQUEST_URI', $_SERVER['REQUEST_URI']);
    34 define( 'SEOLI_VERSION', '1.5.4' );
     34define( 'SEOLI_VERSION', '1.5.5' );
    3535
    3636
     
    204204                        <thead>
    205205                        <tr>
    206                             <th scope="row" style="width:70%;cursor: pointer;" onclick="sortTable('seo_links_keyword', 0)">Keyword</th>
    207                             <th scope="row" onclick="sortTable('seo_links_keyword', 1)" style="cursor: pointer;">Impressions</th>
     206                            <th scope="row" style="width:70%;cursor: pointer;">Keyword</th>
     207                            <th scope="row" style="cursor: pointer;">Impressions</th>
    208208                        </tr>
    209209                        </thead>
     
    261261                            <thead>
    262262                            <tr>
    263                                 <th scope="row" style="width:70%;cursor: pointer;" onclick="sortTable('seo_links_most_relevant_keyword', 0)">Keyword</th>
    264                                 <th scope="row" onclick="sortTable('seo_links_most_relevant_keyword', 1)" style="cursor: pointer;">Impressions</th>
     263                                <th scope="row" style="width:70%;cursor: pointer;">Keyword</th>
     264                                <th scope="row" style="cursor: pointer;">Impressions</th>
    265265                            </tr>
    266266                            </thead>
     
    536536                        <thead>
    537537                        <tr>
    538                             <th scope="row" style="width:70%;cursor: pointer;" onclick="sortTable('seo_links_keyword', 0)">Keyword</th>
    539                             <th scope="row" onclick="sortTable('seo_links_keyword', 1)" style="cursor: pointer;">Impressions</th>
     538                            <th scope="row" style="width:70%;cursor: pointer;">Keyword</th>
     539                            <th scope="row" style="cursor: pointer;">Impressions</th>
    540540                        </tr>
    541541                        </thead>
     
    597597                    <thead>
    598598                    <tr>
    599                         <th scope="row" style="width:70%;cursor: pointer;" onclick="sortTable('seo_links_most_relevant_keyword', 0)">Keyword</th>
    600                         <th scope="row" onclick="sortTable('seo_links_most_relevant_keyword', 1)" style="cursor: pointer;">Impressions</th>
     599                        <th scope="row" style="width:70%;cursor: pointer;">Keyword</th>
     600                        <th scope="row" style="cursor: pointer;">Impressions</th>
    601601                    </tr>
    602602                    </thead>
  • seo-links-interlinking/trunk/utils.php

    r2681791 r2683944  
    88     * Regex definitiva
    99     */
    10     $re = '/((<(h1|h2|h3|h4|h5|h6|a).*?>(.*?)<\/.*?>)|<.*?>)(*SKIP)(*FAIL)|\b' . preg_quote( $ga_key ) . '\b/i';
     10    $re = '/((<(h1|h2|h3|h4|h5|h6|a).*?>(.*?)<\/.*?>)|<.*?>)(*SKIP)(*FAIL)|\b' . str_replace('/', '\/', preg_quote( $ga_key ) ) . '\b/i';
    1111
    1212    $output = preg_replace_callback( $re, function( $m ) use ( $url_with_content, $content ){
     
    2323function seoli_search_replace_regex( $ga_key, $content ){
    2424    $matches = array();
    25     $re = '/((<(h1|h2|h3|h4|h5|h6|a).*?>(.*?)<\/.*?>)|<.*?>)(*SKIP)(*FAIL)|(\S+)\s*(\S+)\s*' . preg_quote( $ga_key ) . '\s*(\S+)\s*(\S+)/mi';
     25    $re = '/((<(h1|h2|h3|h4|h5|h6|a).*?>(.*?)<\/.*?>)|<.*?>)(*SKIP)(*FAIL)|(\S+)\s*(\S+)\s*' . str_replace('/', '\/', preg_quote( $ga_key ) ) . '\s*(\S+)\s*(\S+)/mi';
    2626    preg_match_all( $re, strip_tags( $content ), $matches, PREG_SET_ORDER, 0);
    2727    if( !empty( $matches ) ) {
Note: See TracChangeset for help on using the changeset viewer.