Post Pay Counter

The best way to pay authors on WordPress

  • Features
    • PRO version
  • Cart
    • Addons
  • Documentation
  • Support

Error of word counting related to quotes

by

› Forums › Post Pay Counter › Support › Error of word counting related to quotes

!! IMPORTANT !!

We are currently on vacation with NO internet connectivity, so support tickets replies are likely to be delayed. We'll be fully back on July 11th. Sorry!

We are based in Europe with a GMT+1/GMT+2 time zone - support replies may be delayed due to time zone differences with your country.

  • This topic has 1 reply, 2 voices, and was last updated 7 years, 9 months ago by Stefano.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • September 29, 2014 at 11:09 am #9856
    cedric rouanet
    Keymaster

    Hello,
    you made an error for the counting of words when have 2 quote on the same article .

    the problem come from :
    $post->post_content = preg_replace( ‘/<(blockquote|q)>.*</(blockquote|q)>/s’, ”, $post->post_content );

    in ppc_counting_stuff.php

    Greedy : php test.php test1.txt | wc
    14 142 1026

    Ungreedy : php test.php test1.txt | wc
    60 572 4225
    thx to fix it please

    September 29, 2014 at 1:50 pm #9879
    Stefano
    Keymaster

    Hi Cedric,
    That was indeed a bug, but it was fixed yesterday with version 2.35 🙂

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Error of word counting related to quotes’ is closed to new replies.

Your cart

Number of items in cart: 0

  • Your cart is empty.
  • Total: €0.00
  • Checkout

What are you looking for?

BEFORE POSTING

Before posting, please please please do have a look at our Documentation section. Your problem may be addressed there, allowing you to solve it without help from us :)

Copyright © 2022 · Centric Theme on Genesis Framework · WordPress · Log in

This site uses cookies, as all sites on the planet do -- More info