Lucas Martins
Forum Replies Created
-
Forum: Plugins
In reply to: [Broken Link Checker] Use archive.org for broken links?Checked here, the plugin already uses Wayback machine (file /includes/admin/links-page-js.php):
function findReplacementSuggestions(url, suggestionList) { var searchingText = '<?php echo esc_js( _x( 'Searching...', 'link suggestions', 'broken-link-checker' ) ); ?>'; var noSuggestionsText = '<?php echo esc_js( _x( 'No suggestions available.', 'link suggestions', 'broken-link-checker' ) ); ?>'; var iaSuggestionName = '<?php echo esc_js( _x( 'Archived page from %s (via the Wayback Machine)', 'link suggestions', 'broken-link-checker' ) ); ?>'; suggestionList.empty().append('<li>' + searchingText + '</li>'); var suggestionTemplate = $('#blc-suggestion-template').find('li').first(); //Check the Wayback Machine for an archived version of the page. $.getJSON( 'https://archive.org/wayback/available?callback=?',
but it takes a lot of time to do this to every broken link. I have now more than 4000 links to check. It would be way better to do this automatically to every broken link.
Forum: Plugins
In reply to: [Broken Link Checker] Use archive.org for broken links?I activated this plugin again (not being used since 2015), and as far as I remember, this feature was available back then =(
Found a way to remove the tags from opengraph:
function add_my_custom_presenter( $presenters ) { $presenters_to_remove = array('Article_Published_Time_Presenter', 'Article_Modified_Time_Presenter'); for($x=1; $x<=sizeof($presenters); $x++) { $classname = substr(get_class($presenters[$x]), strrpos(get_class($presenters[$x]), "\\")+1); if(in_array($classname, $presenters_to_remove)) { unset($presenters[$x]); } } return $presenters; } add_filter( 'wpseo_frontend_presenters', 'add_my_custom_presenter' );
but this data is still showing in the jd+json schema graph.
edit 2: got that fixed too
add_filter( 'wpseo_schema_article', 'remove_date_from_schema_graph'); add_filter( 'wpseo_schema_webpage', 'remove_date_from_schema_graph'); function remove_date_from_schema_graph( $array ) { unset($array['datePublished']); unset($array['dateModified']); return $array; }
- This reply was modified 4 years, 10 months ago by Lucas Martins.
- This reply was modified 4 years, 10 months ago by Lucas Martins.
Forum: Reviews
In reply to: [Simple Ads Manager] Click Counter Doesn't WorkOther people might be clicking in the meantime …
Forum: Plugins
In reply to: [Intuitive Category Checklist] Can't add new category in WP 3.5!You can add categories using the category manager:
/wp-admin/edit-tags.php?taxonomy=categoryForum: Fixing WordPress
In reply to: WordPress 3 infinite loop on multisiteI have the same problem here.
When this happens, I just logoff on both blogs, then load the login page of each one. Then login separately.
Forum: Plugins
In reply to: [Plugin: W3 Total Cache] Caching usernames as wellI undesrstood.
He just loaded a cached page which was genereated by another logged-in user.Forum: Plugins
In reply to: [Plugin: Google XML Sitemaps] automatically sitemap update doesn’t work@margje: i’m using WPMU 2.9.1.1 and I’m having this problem yet …
Forum: Fixing WordPress
In reply to: PHP Function date() being manipulated by WP?just found the solution. Commented these lines of wp-settings.php
if ( function_exists(‘date_default_timezone_set’) )
date_default_timezone_set(‘UTC’);Forum: Fixing WordPress
In reply to: PHP Function date() being manipulated by WP?I commented the line
add_filter( ‘pre_option_gmt_offset’,’wp_timezone_override_offset’ );
in default-filters.php but no results … =/
Forum: Fixing WordPress
In reply to: Post date appears in Google Search ResultGoogle is taking this from your feed or sitemap, probably.
Forum: Fixing WordPress
In reply to: WordPress 2.9 replaces new line with paragraphForum: Fixing WordPress
In reply to: WordPress 2.9 dashboard html editor inserting <p> tagsI FOUND the solution …
Edit wp-includes/default-filters.phpline 110, change from:
add_filter( ‘the_content’, ‘wpautop’);to
add_filter( ‘the_content’, ‘wpautop’, 0);
Forum: Fixing WordPress
In reply to: WordPress 2.9 dashboard html editor inserting <p> tagsI dont think this is related to TinyMCE, since all previous posts I published are being affect by this issue (I didn’t edited them, so they still the same in database).
Forum: Fixing WordPress
In reply to: WordPress 2.9 replaces new line with paragraphI’m having the exactly same problem.
I tried to deactivate the filter “wpautop”, but then no P tag is added to the content, making a big mess.
Tried to copy the old function wpautop to new version, didn’t work too..