Expand Cut Tags

No cut tags
[syndicated profile] wordpresstrac_feed

Posted by ocean90

duplicate:

Yoast SEO is actually doing it wrong since numbered arguments are not supported by wpdb::prepare(). There's a pending PR to fix this.

Closing as a duplicate #41925 which requests to add support for numbered arguments.

[syndicated profile] wordpresstrac_feed

Posted by ruud@…

Since 4.8.2 an additional line was added to escape any unescaped percents:

$query = preg_replace( '/%(?:%|$|([^dsF]))/', '%%\\1', $query ); // escape any unescaped percents

this however prohibits the use of numbered arguments like in this query from Yoast SEO plugin:

$query = $wpdb->prepare( 'SELECT COUNT( id ) AS incoming, target_post_id AS post_id
			  FROM %2$s
			 WHERE target_post_id IN( %3$s )
		  GROUP BY target_post_id',
			$this->get_table_name(),
			$storage->get_table_name(),
			implode( ', ', $post_ids )
		);
[syndicated profile] wordpresstrac_feed

Posted by soulseekah

4.8.2 specifically restricts the very convenient usage of %1$s, %1$d, %1%f placeholders in WPDB::prepare. For yet undisclosed security purposes.

Since this has been very widely used in code as an undocumented feature, I propose to bring it back, provide official support and documentation for it.

https://github.com/search?q=wpdb-%3Eprepare+%251%24s&type=Code&utf8=%E2%9C%93 over 1.2 million search results using the no longer supported syntax. Including the very popular Yoast SEO plugin which broke unexpectedly with the recent security update.

Adaptions and remixes

Sep. 20th, 2017 12:07 pm
selenak: (Borgias by Andrivete)
[personal profile] selenak
Two filmed novels in, the tv version of JKR's written-as-Robert-Galbraith mystery novels called Strike comes across as very enjoyable. Holiday Grainger is a delight as Robin, Tom Burke still isn't how I imagined Cormoran Strike, but he's entertaining to watch, and they have good chemistry. Inevitably, characters and subplots were for the axe in both Cuckoo's Call and The Silkworm, but so far they've kept the important emotional beats. In the case of The Silkworm, I'm especially glad my favourite sentence of the entire novel gets to be used in dialogue, though a different character gets to say it on tv: Writers are a savage breed, Mr. Strike. If you want life-long friendship and selfless camraderie, join the army and learn to kill. If you want a lifetime of temporary alliances with peers who will glory in your every failure, write novels."

Of the guest stars, the actresses playing Leonora and Orlando were especially good. I do notice that some of the sharpness of the novels is lost when it comes to politics. I mean, The Silkworm, the novel, has passages like this: : Kenneth Clarke, the Justice Secretary, was announcing plans to slash 350 million pounds from the legal aid budget. Strike watched through his haze of tiredness as the florid, paunchy man told Parliament that he wished to 'discourage people from restoring to lawyers whenever they face a problem, and instead encourage them to consider more suitable methods of dispute resolution.' He meant, of course, that poor people ought to relinquish the services of the law. Nothing like it on tv. But the result still doesn't feel as awfully castrated as the tv version of The Casual Vacancy, which lost all the bite and anger and ruined what might not have been a masterpiece but was a novel with genuine points to raise by turning it into inoffensive blandness, more angry reviews here, possibly because such asides aren't the main issue in the Galbraith novels.

In other news, [community profile] missy_fest has been revealing one Missy story per day-ish. This was the smallest ficathon I ever participated in, but a delight to write and read, and as soon as it's de-anonymized, I'm going to link and talk about the story I wrote. Meanwhile, check out the one I received, which was The Master's Faithful Companion (Forever or Just A Day Remix), which remixed my story Lucy in the Sky with Diamonds.
rydra_wong: Lee Miller photo showing two women wearing metal fire masks in England during WWII. (Default)
[personal profile] rydra_wong
The Guardian: Medieval porpoise 'grave' on Channel island puzzles archaeologists

I love everything about this story:

Archaeologists digging at an island religious retreat have unearthed the remains of a porpoise that, mystifyingly, appears to have been carefully buried in its own medieval grave.

MAYBE THE PORPOISE WAS A MONK, HAVE YOU THOUGHT ABOUT THAT.

... and now I eagerly await the medieval monk were-porpoise shifter romance.

For a different kind of wonderful:

The Fader: This Artist Is Filling London With Murals Of Extraordinary Black Women

The art is gorgeous, but what I really love is that he's portraying his female friends, people who aren't famous but are ordinary/extraordinary people - a youth worker, a psychotherapist, and so on. And I love the shots of the murals with the real women posed next to them.
giandujakiss: (Default)
[personal profile] giandujakiss
The GOP broke off bipartisan talks with Dems to shore up ACA's insurance markets, and now they're trying - again - to unilaterally repeal ACA and take with it a huge chunk of Medicaid (which will, of course, completely destabilize our entire healthcare system, but that's where we are).

You can find more information by googling Graham-Cassidy, but here's one link.

Apparently, Lindsey Graham - one of the bill's sponsors - got on Breitbart radio (yes, now we're integrating Breitbart into GOP mainstream, fun times ahead) to urge listeners to call in support of the new bill, so it's VERY IMPORTANT that the Senate be flooded with opposition calls.

Here is one script and information resource.

Marriage Equality vote

Sep. 20th, 2017 06:15 pm
dreamer_easy: (*gender)
[personal profile] dreamer_easy
Everyone should have their forms for Australia's vote on Marriage Equality by Monday 25 September. If yours doesn't arrive, then you can ring the ABS on 1800 572 113 or by visiting their Website to get a replacement. (If anyone has pinched yours, then your replacement vote will cancel theirs.)

If you post a photo of your survey form online, make sure its unique barcode is not visible!

Do same-sex couples really have the same rights as married couples? (SBS, 14 September 2017). SPOILER: No, they don't, in some very important ways.

If most people who mail back their vote, vote "yes", then the government says it will vote on marriage equality; if "no", it won't. Frankly, I hope that LGBQTI+ voters and their friends vote these spineless bastards out at the next Federal election. (Labour says it will make marriage equal within 100 days of its being elected).

Speaking of spinelessness, the "debate" over the poll is having exactly the effect the government knew very well that it would: severe stress on LGBTQI+ Australians, especially on young people, who were already at risk. Expert in youth mental health Patrick McGorry responded to Senator Matt Canavan's victim-blaming by suggesting that LGBTQI+ young people have more of a spine than he does. (The rage I feel about this renders me inarticulate, it really does. I keep typing things and having to delete them.) The Australian Medical Association, citing the harm caused by inequality to LGBTQI+ people's health, is campaigning for the YES vote.

The Women's Electoral Lobby page on the survey has a list of helplines, which I'm sure they won't mind if I reproduce here:
Switchboard (Qlife) 1800 184 527
queerspace, drummond street services 03 9663 6733
Victorian AIDS Council (03) 9865 6700
Mind Equality Centre 1300 054 284
headspace (03) 9027 0100
Rainbow Network (03) 9479 8870
Kids Helpline 1800 55 1800
Black Rainbow (08) 9228 0354
Lifeline 13 11 14
Black Dog Institute (02) 9382 2991
Suicide Call Back Service 1300 659 467

(There are also a few links in my last posting.)

Finally, just because I found it interesting, here's a report on the complexities of the debate in Asian Australian communities (chiefly Chinese, Vietnamese, and Filipino.)
naraht: (Default)
[personal profile] naraht
nothing gold can stay (2628 words) by Naraht
Chapters: 1/?
Fandom: Yuri!!! on Ice (Anime)
Rating: Teen And Up Audiences
Warnings: No Archive Warnings Apply
Relationships: Yuri Plisetsky & Victor Nikiforov, Yuri Plisetsky & Yakov Feltsman, Lilia Baranovskaya/Yakov Feltsman
Characters: Yuri Plisetsky, Victor Nikiforov, Yakov Feltsman, Lilia Baranovskaya
Additional Tags: Rivals, Post-Canon, Growing Up, Coming of Age, growth spurt, Injury, 2018 Winter Olympics, Aging
Summary: Yuri Plisetsky will never step out of Victor's shadow. Not if Victor has anything to do with it.

Or, the epic Nikiforov/Plisetsky rivalry in the run-up to the 2018 Games.



Here it is, the long one. The first chapter of the long one, at least.

A friend tells me that 'rage-filled teenage boy athlete' is not my usual aesthetic – probably an understatement! But it's a refreshing change in writing terms, and it's good to stretch yourself... right?

They call the wind 'Maria'?

Sep. 20th, 2017 07:59 am
[syndicated profile] languagelog_feed

Posted by Geoffrey K. Pullum

I hope you appreciate the wisdom of the new policy on naming hurricanes that was announced here on September 11. The latest brutal storm to devastate the islands of the eastern Caribbean would not have been named for the mother of Jesus; it would have been named "Hurricane Malaria." That's more like it. Nasty names for nasty stuff. You know it makes sense.

dreamer_easy: (refugees)
[personal profile] dreamer_easy
First group of refugees on Manus and Nauru to be resettled in US (GA, 20 September 2017). One of the detainees, Abdul Aziz Adam (of The Messenger podcast), has posted on Facebook that some of the detainees have already been told they will be moved within a week. (I haven't posted much about the refugee swap with the US because of my scepticism. Never been happier to be wrong!)

Victoria steps in to help 100 asylum seekers cut off by Coalition (GA, 9 September 2017) More states could help asylum seekers denied welfare by Coalition (GA, 11 September 2017). Only NSW ruled it out.

Manus Island: judge approves $70m compensation for detainees (GA, 6 September 2017). "Lawyers hope to have sum paid before offshore detention centre closes next month in what is Australia’s largest human rights class action settlement." Most of the refugees have signed up for the compensation, though some may have done so in the belief that they have no other options, and some have lodged objections and want a trial instead.

Nauru President indicates $8,000 visa fee for journalists will be waived next year (ABC, September 2017)

Australia's refugee capital 'shows what the country can do' (GA, 23 June 2017). "Fairfield in Sydney’s west has resettled roughly half of all humanitarian migrants to arrive in the past 10 years. ‘We’ll always open our arms,’ its mayor says."

thewayne: (Default)
[personal profile] thewayne
Maybe that was midnight Cupertino time, I don't know. Regardless, both of our iPads are too old, as is my wife's iPhone 4S. That leaves my iPhone 6 as the only device that can run it, and since I'm about to head for Phoenix and I won't have my iMac with me for a system restore should something glitch, I think I'll hold off a bit. For that matter, the new MacOS is supposed to drop in a couple of days, and I won't be upgrading to that until I get back from Phoenix, so I'll probably just do a device upgrade frenzy when I get back.

Some of the features in iOS 11 are pretty cool. I like the 'press the power key 5 times to disable the fingerprint reader', definitely cool. It doesn't materially affect me as I don't use the fingerprint reader to unlock my phone, but that's OK. And they've apparently made the reverse video mode more intelligent for not reversing images, which is good. I really wish they had an override for web pages and such so you could force white letters on black background, for example. That's what I love about Ars Technica and hate about most others, I find white on black to be much easier on my eyes.

But I DO NOT like updating my phone apps over WiFi (as I wrote about last week), I thought loading apps through iTunes was easy and one-stop syncing. They've just increased the hassle and it's likely to increase the time between me doing updates from daily to weekly or monthly or whenever. Which increases potential security vulnerabilities, which ticks me off. iTunes should be a framework that supports plug-ins, then all they'd have to do is write a plug-in that reads the app store for just iPhone/iPad/Watch apps, and re-casts them in to the iTunes framework. It's still just one app store, it just looks like two.

Twits.

GET OFF MY LAWN! Kids these days.

(In a totally unrelated incident, I got "Sir'd" last week! I was sitting in a barber shop waiting for my guy to finish with his current client, and the other guys started talking about horror movies. I'm not a big horror movie fan, so I didn't participate until later. Now, this barber shop is an actual barber shop, not a hair salon, run by 30-somethings with tattoos up to their necks and possibly beyond, smoking their e-cigs and playing that reissued Nintendo Classic that came out last year when they're slow. I don't really care. So what if they're young. I piped up about some movie, I don't remember what, throwing in my $0.002 worth, and this one barber later comes over and apologizes, saying that he didn't know that he had an older gentleman in the shop and they wouldn't have been talking like that if they'd known! Yes, dude, I'm 55, and some day you'll be there, too, if you're lucky. Maybe I'm moving towards the far side of middle-age, but trust me, though I am growing older I definitely have not remotely grown up. In my headspace I'm still a 30-something, though my body constantly reminds me that I am not. I laughed at him, reassured him that I was not offended, then told them a pretty grizzly story about a quietly spectacular suicide that happened while I was working for the police department. The crime lab was in the basement as was computer services, and the car that this guy offed himself in was so pungent that finally I told my boss that I'm taking off for the day. The fire department later used that car as burn practice.

I'll go in to no further details, unless people want it, in which case I'll put it in a new post under a cut.)

(no subject)

Sep. 20th, 2017 08:45 am
oursin: Brush the Wandering Hedgehog by the fire (Default)
[personal profile] oursin
Happy birthdsy, [personal profile] sharpiefan!

Many Faces chapter 39!

Sep. 19th, 2017 10:33 pm
fayanora: Steph Candy (Steph Candy)
[personal profile] fayanora
“The Many Faces of Har—er, Adira Potter: Chapter 39”
By = Fayanora

Chapter 39 of The Many Faces of Har--er, Adira Potter is now published!

Chapter title: Hypatia's Gambit

Chapter blurb: Some secrets are revealed, Hypatia uses her Slytherin side to get some information, and Mr. Crouch - gone mental - appears and disappears.

Archive Of Our Own version

FanFiction dot net version (I changed the title at FF.net finally and the links appear to have changed as a result but old links still appear to work so *shrug*)

Big Closet version

Start at Chapter One: "Feeling Sic" = AO3, FF.net, BC
[syndicated profile] wordpresstrac_feed

Posted by manchumahara

get_{$adjacent}_post_sort code looks like below

$sort  = apply_filters( "get_{$adjacent}_post_sort", "ORDER BY p.post_date $order LIMIT 1", $post );

I think it should have the $order as parameter after $post, my proposed code is

$sort  = apply_filters( "get_{$adjacent}_post_sort", "ORDER BY p.post_date $order LIMIT 1", $post, $order );

as $order is missing as filter parameter it's not possible to understand what's the current $order from the the first parameter "ORDER BY p.post_date $order LIMIT 1"

Using only the Brat Pack

Sep. 20th, 2017 01:07 am
james_davis_nicoll: (Default)
[personal profile] james_davis_nicoll
Cast a 1980s New Teen Titans film....

Profile

jeshyr: Blessed are the broken. Harry Potter. (Default)
Ricky Buchanan