Plugin Directory

Changeset 2483268


Ignore:
Timestamp:
03/01/2021 04:44:42 AM (5 years ago)
Author:
lrdb
Message:

removed all new spans added by GitHub

File:
1 edited

Legend:

Unmodified
Added
Removed
  • embed-githubin/trunk/githubin.php

    r2252207 r2483268  
    55* Version: 1.1
    66* Author: laresistenciadelbit
    7 * Author URI: https://laresistenciadelbit.meph.website
     7* Author URI: https://laresistenciadelbit.diab.website
    88*/
    99function githubin($atts)
     
    163163                $content_githubin=preg_replace('/<!DOCTYPE[\s\S]*?<div id=\"user-repositories-list/imu','<div id="user-repositories-list',$content_githubin);
    164164                $content_githubin=preg_replace('/<!DOCTYPE[\s\S]*?<div class=\"org-repos repo-list/imu','<div class="org-repos repo-list',$content_githubin);
     165                //quitamos todos los nuevos span que han añadido (2021-03-01)
     166                while( preg_match( '/<span[\s\S]*?<\/span>/imu', $content_githubin) )
     167                    $content_githubin=preg_replace('/<span[\s\S]*?<\/span>/imu','',$content_githubin);
     168                while( preg_match( '/<\/span>/imu', $content_githubin) )
     169                    $content_githubin=preg_replace('/<\/span>/imu','',$content_githubin);
     170                while( preg_match( '/Updated <relative-time[\s\S]*?<\/relative-time>/imu', $content_githubin) )
     171                    $content_githubin=preg_replace('/Updated <relative-time[\s\S]*?<\/relative-time>/imu','',$content_githubin);
    165172             break;
    166173         }
Note: See TracChangeset for help on using the changeset viewer.