Title: atao's Replies | WordPress.org

---

# atao

  [  ](https://wordpress.org/support/users/atao/)

 *   [Profile](https://wordpress.org/support/users/atao/)
 *   [Topics Started](https://wordpress.org/support/users/atao/topics/)
 *   [Replies Created](https://wordpress.org/support/users/atao/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/atao/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/atao/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/atao/engagements/)
 *   [Favorites](https://wordpress.org/support/users/atao/favorites/)

 Search replies:

## Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Social Connect] WordPress Error when connecting](https://wordpress.org/support/topic/wordpress-error-when-connecting/)
 *  [atao](https://wordpress.org/support/users/atao/)
 * (@atao)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/wordpress-error-when-connecting/#post-4710827)
 * Hello
    I just installed Social Connect 1.0.5 with WordPress 3.8.1 Other extensions:–
   Better WP Security 3.6.6 with “Prevent long URL strings” desable – Askimet 2.6.0–
   Better WordPress reCAPTCHA 1.1.0 – Contact Form 7 v. 3.7.2 – Extension Contact
   Form 7 reCAPTCHA 0.1.0 – Flamingo 1.0.6 – Social Linkz 1.6.2 – UpdraftPlus – 
   Backup/Restore 1.8.12
 * The site is configured with:
    define( ‘FORCE_SSL_LOGIN’, true ); define( ‘FORCE_SSL_ADMIN’,
   true );
 * When I clic on the Google icon, I get a blank window that says “WordPress Error”
   in the title bar.
 * The site is here: [http://blogcadrexperts.net/](http://blogcadrexperts.net/)
   
   The connexion link is in the meta widget at the bottom right.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Kadence Security – Password, Two Factor Authentication, and Brute Force Protection] Enforce front end SSL](https://wordpress.org/support/topic/enforce-front-end-ssl-1/)
 *  [atao](https://wordpress.org/support/users/atao/)
 * (@atao)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/enforce-front-end-ssl-1/#post-4117251)
 * WordPress 3.7.1
    Better Wp Security 3.6.5
 * > When enforcing ssl on a page, initially, the URL does display as https – but
   > when trying to visit other pages on the site – they all try to load as https
   > and do not revert to http, breaking the site.
 * I have the same behavior on my site. It shouldn’t: if the site is protected by
   SSL certificate, even WP “public” pages should be accessible through https. I
   haven’t figured out who is the culprit, WP, Better WP Security or the site server.
   
   So in the meantime, I use this:
 *     ```
       /**
        * Always use http for public pages, even if the requested page
        * is "SSL Enabled" (see Better WP Security's SSL on demand)
        * Note. Needed as any attempt to access a public page with https url
        *       will fail. Don't know if it's a Better WP Security issue or
        *       a One.com server issue.
        */
       function cce4_public_home_url($url, $path, $orig_scheme, $blog_id) {
           global $post, $bwps, $bwpsoptions;
           $scheme = parse_url( $url, PHP_URL_SCHEME ) === 'https';
           $scheme &= ! is_admin();
           $scheme &= 'wp-login.php' !== $GLOBALS['pagenow'];
   
           if ( $scheme ) {
               $url = set_url_scheme( $url, 'http' );
           }
           return $url;
       }
       add_filter('home_url', 'cce4_public_home_url', 4);
       ```
   
 * You need to set up your .htaccess files as usual. No special trick is required.
 * This will reverse the protocol for links to public pages but will keep https 
   for the resources links, avoiding any SSL warning (“no data from the site”).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Kadence Security – Password, Two Factor Authentication, and Brute Force Protection] "Remove WordPress Generator Meta Tag" doesn't.](https://wordpress.org/support/topic/remove-wordpress-generator-meta-tag-doesnt/)
 *  [atao](https://wordpress.org/support/users/atao/)
 * (@atao)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/remove-wordpress-generator-meta-tag-doesnt/#post-4661291)
 * The reason for this is in inc/secure.php. The variable $isIWP is not correctly
   initialized in function __construct().
 * If the test:
    `if ( $HTTP_RAW_POST_DATA !== false && strlen( $HTTP_RAW_POST_DATA)
   > 0 )` doesn’t pass, $isIWP stays undefined. Then the condition is always false
   in the test: `if ( $isIWP === false )`
 * So just adding
    `$isIWP = false;` before the first test solves the issue.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[lithium] strong tag in the beginning of an article](https://wordpress.org/support/topic/strong-tag-in-the-beginning-of-an-article/)
 *  Thread Starter [atao](https://wordpress.org/support/users/atao/)
 * (@atao)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/strong-tag-in-the-beginning-of-an-article/#post-4596434)
 * My final request would be:
 * – either make ‘lithium_excerpt’ “pluggable”:
 *     ```
       if ( ! function_exists( 'lithium_excerpt' ) ) :
       /* Custom Excerpt */
       function lithium_excerpt($limit) {
       [...]}
       endif; // lithium_excerpt
       ```
   
 * – or redefine it with a call to some filter, something like:
 *     ```
       function lithium_excerpt( $limit ) {
         return apply_filters( 'get_the_excerpt', null, $limit, '&hellip;' );
       }
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Social Linkz - Lightweight and fast social media sharing plugin] make makedot happy](https://wordpress.org/support/topic/make-makedot-happy/)
 *  Thread Starter [atao](https://wordpress.org/support/users/atao/)
 * (@atao)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/make-makedot-happy/#post-4641359)
 * > In addition, the text domain is not set because the text domain is a veraible
   > in my plugin… I you try an external tools, you won’t find any sentence to translate
   > 🙂
 * Not at all. Makepot find all the i18n strings. It works with the ‘__’ or ‘_e’
   whatever is the argument for text domain. Even if it’s a variable or if there
   is none.
 * > and why don’t you use the embedded translation tools ?
   >  There is a tab for 
   > that in the configuration page : you do not need any extrenal tools to modify
   > the translation
 * Yes but you can’t add an entry to the list. Therefor I can’t translate there 
   the presentation displayed on DashBoard > Plugins > Installed Plugins…
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[lithium] strong tag in the beginning of an article](https://wordpress.org/support/topic/strong-tag-in-the-beginning-of-an-article/)
 *  Thread Starter [atao](https://wordpress.org/support/users/atao/)
 * (@atao)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/strong-tag-in-the-beginning-of-an-article/#post-4596414)
 * FYI I replaced ‘wp_trim_excerpt’ for the filter ‘get_the_excerpt’ using a updated
   and modified version of:
    Truncating Text & HTML with PHP [http://www.pjgalbraith.com/2011/11/truncating-text-html-with-php/](http://www.pjgalbraith.com/2011/11/truncating-text-html-with-php/)
   It works fine: – the style html tags are kept – if needed the html tags are closed–
   the number of words is more accurate
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Social Linkz - Lightweight and fast social media sharing plugin] ampersand should be html entities](https://wordpress.org/support/topic/ampersand-should-be-html-entities/)
 *  Thread Starter [atao](https://wordpress.org/support/users/atao/)
 * (@atao)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/ampersand-should-be-html-entities/#post-4595814)
 * In social-linkz/social-linkz.php, there are already some “&” used in same context
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Social Linkz - Lightweight and fast social media sharing plugin] ampersand should be html entities](https://wordpress.org/support/topic/ampersand-should-be-html-entities/)
 *  Thread Starter [atao](https://wordpress.org/support/users/atao/)
 * (@atao)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/ampersand-should-be-html-entities/#post-4595807)
 * The “&” will be used as it in the generated document, i.e. we’ll get things such
   as “&title”, “&overview”…
 * When I check the generated page with [http://validator.w3.org](http://validator.w3.org),
   I get this kind of messages:
 *     ```
       Error Line 130, Column 1795: & did not start a character reference. (& probably should have been escaped as &.)
   
       …-sortir-de-la-logique-de-supermarch%2F&title=%5BBlog%5D%20Recherche%20d%E2%80%…
       ```
   
 * But “&title;”, or here “&title”, is not a valid entity. An ampersand is allowed
   by specification only as start of an entity. If there is any other ampersand,
   the document can’t be validated.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Social Linkz - Lightweight and fast social media sharing plugin] duplicate ID when social links in widgets](https://wordpress.org/support/topic/duplicate-id-when-social-links-in-widgets/)
 *  Thread Starter [atao](https://wordpress.org/support/users/atao/)
 * (@atao)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/duplicate-id-when-social-links-in-widgets/#post-4595805)
 * WordPress is configured with:
    – Dashboard > SL Plugins > Social Links > Settings
   top position checked for posts – Dashboard > Appearance > Widgets Social Linkz
   in first position inside Sidebar
 * When I check the generated page with [http://validator.w3.org](http://validator.w3.org),
   for each social link I get this kind of messages:
 * ` Error Line 229, Column 3647: Duplicate ID maskdfdf594015d19121d22b6a6ba36185b3.
 * …1d22b6a6ba36185b3″ class=”social_mask”></div> <div id=”dialogdfdf594015d19…
 * ✉
    Warning Line 130, Column 3647: The first occurrence of ID maskdfdf594015d19121d22b6a6ba36185b3
   was here.
 * …1d22b6a6ba36185b3″ class=”social_mask”></div> <div id=”dialogdfdf594015d19…
   ‘
 * Each occurence of the social link uses a div tag with the same id, which is not
   allowed by specifications:
 * >  – HTML 4.01 specification says ID must be document-wide unique.
   >  – HTML 5 
   > specification says the same thing but in other words. It says that ID must 
   > be unique in its home subtree which is basically the document if we read the
   > definition of it.
 * Browsers are very accommodating, so they deal with it as long as no script use
   such id, but the page can’t be validated.

Viewing 9 replies - 1 through 9 (of 9 total)