meta_query compare “=“ returns nothing when it seems it should

Trying to query based on form submission. One select on the form is built with:

wp_dropdown_categories( 'name=specialty&taxonomy=specialties&orderby=name&show_option_none=Select a Specialty&show_none_value=-1&selected='.$  p_specialty ); 

The specialty value is then grabbed and an array created:

if (isset($  _GET['specialty']) && !empty($  _GET['specialty']) && $  _GET['specialty'] > 0 ) {     $  specialty = true;     ++$  qs_count;     $  p_specialty = $  _GET['specialty'];     $  p_specialty_array = array (         'key' => 'specialties',         'value' => $  p_specialty,         'compare' => 'LIKE',     );     $  term_specialty = get_term($  p_specialty);     $  term_specialty = $  term_specialty->name;  } 

$ p_specialty_array is then used in:

$  meta_query = array (         'relation'      => 'AND',         array (             'q_last'        => array (                 'key'       => 'provider_name_last_name',             ),             'q_first'       => array (                 'key'       => 'provider_name_first_name',             ),             'compare'       => 'IN',             $  p_fname_array,             $  p_lname_array,             $  p_new_array,             $  p_gender_array,             $  p_clinic_array,             $  p_specialty_array,         ),     ); 

But this causes a problem because the ID of one specialty is 20 and another is 204. When the form is submitted for specialty=20 using compare=LIKE it returns posts where specialty is either 20 or 204 (rather than just 20).

When I change the compare to “=“, nothing is returned even though there are posts where specialty=20.

I’ve also tried adding value_field=‘slug’ to the wp_dropdown_categories, but can’t figure out how to make that work (it may work and I just don’t know how to write the array when using the slug).

I would certainly prefer a method where it only gets “=“ values rather than “LIKE” to avoid issues like this, but can’t get it to work.

How do I make this work with compare "=", or something else, where I get only the specialty selected?

wp_insert_post fails at return statement (nothing is returned to the caller, the error displayed is: The Link You Followed Has Expired)

there is a WooCommerce site where we try to add the Wholesale Pro plugin, which upon activation creates two pages (login, store). For this task it calls the wp_insert_post from a static method. The wp_insert_post does its stuff, and we even log every part of the wp_insert_post procedure to debug.log, comes down to return statement and then the WordPress fails with "The Link You Followed Has Expired" on the plugins.php screen. The return statement returns nothing to the caller static method, but the page/post is created in wp_posts table.

The plugin itself is proven to activate and work properly on another site.

Shouldn’t we move past repeating “rules do what they say and nothing more?” [closed]

More the start of a conversation than a real question. It’s a wall of text, so I thank you in advance if you reach the end.

So hear me out: I’ve lurked on this site for months, learning hidden rules, exploring audacious interpretations and studying new mechanics: the honeymoon is not over yet and I’m very grateful to the community. But I also have a bone to pick with ya all: under most questions I often find this mantra, repeated mindlessly as premise for any reasoning:

Rules do what they say and nothing more.

I get the intent: don’t interpret the text beyond its scope, or you’ll end up unbalancing the game. Absolutely. But most of the times it’s used to stop the conversation instead of providing a fruitful contribution.

Case in point: in my first answer regarding the uses and limits of Mage hand, I said:

[The spell’s text] mentions manipulate an object, open an unlocked door or container, stow or retrieve an item from an open container, or pour the contents out of a vial; is this all it can do? I don’t think so, because it adds later that the hand can’t attack, activate magic items, or carry more than 10 pounds. The description remains generic on the things you can do, but is very strict on what you cannot. Could the Mage hand hold a light living creature, like a mouse? It’s certainly not an object, but it wouldn’t make sense to forbid it. As I interpret it, it’s a phantasmal hand with very little strength (therefore no attacks or any effort beyond 10 pounds) and which can’t complete complex tasks (therefore no activating magic objects): beyond that, the player’s fantasy’s the limit, and it should be rewarded […].

I later realized that my example concerning a mouse was not as blatant as I thought, and in fact made for a different can of worms altogether. I can hear the rebuttals in the back: "The text says you can manipulate an object, so you can’t manipulate a mouse, your example is dumb and all that follows is voided". I’m sure some agree with my non-existent, pesky alter ego, but let me add something. If you can’t hold the mouse, what happens a player tries anyway? The manuals don’t offer an easy solution, so perhaps you could simply 1)Have the cantrip stop and the hand disappear; or 2)Have the living creature fall through the ghostly limb; or maybe 3)Have the hand become unresponsive for as long as it’s interacting with incompatible things (in this case, creatures). I’m sure you can come up with any number of different solutions, and at the moment your ruling may seem to harmonize the rule with the situation.

Then again your mischievous mage player could exploit your ruling in any number of ways. Case by case: 1)If any living creature interrupts the cantrip, couldn’t another player simply highfive it and interrupt it at every turn? "AntiMage hand maneuver is a go, let’s go clap the lil’ bugger". 2)If living things fall through the hand (and in a world with constructs and undead, have fun deciding what is living), could you also use it to scout for mimics? Actually, can the ghostly hand normally go through walls? How is the feeling of having the mage hand cross your body? Could the mage use the Mage hand to convince the king he is the ghost of his great grandfather, who eternally cursed his lineage by not adequately paying a party of adventurers for their services, and the spell can only be broken by emptying the royal treasuries onto the hand of the first random party of adventurers that show up at his presence? (I know there are easier ways, but we are squeezing all possible uses out of a measly cantrip just to make a point, come on). 3)Could you use your otherwise useless adventuring gerbil Jeremiah as a reliable counter to stop very specifically worded spells and magic items which can’t possible operate with living creatures, displaying "Error 403, forbidden" when interacting with any?

You see what I mean, any number of possible interpretations both in line with and beyond the text has an infinite number of unforeseen ramifications, and even though every DM can come up with a different answer, I think the only wrong answer would be "You can’t do that at my table because rules don’t give a definite answer, so change your action or lose the turn". That’s how everyone’s morale wilts and how one disincetivizes any experimentation, to the detriment of the game as a whole.

Beside, shouldn’t we stop pretending the manuals were some kind of holy text providing every answer to every situation, a perfectly calibrated machine which was as frail as to crumble at the flimsiest of pokes? Let’s be honest here. Many spells are situational at best, same as several subclasses (and I don’t want to touch upon the OG ranger) and races (there’s a special place in hell for human variants); many (if not most) feats are borderline useless, and several of the conjurable creatures from find familiar are best left at the end of the PHB where they belong. The list could go on and on. And I’m not proclaiming that playing optimally is the only sensed way to (that discussion would need an other post twice as long), but for a player there’s no worse feeling than being locked up in a useless choice and drag behind the rest of a more traditional party for the unforgivable sin of experimenting with existing mechanics. Shouldn’t a DM touch up the weakest parts of the books to improve everyone’s experience at the table? After all, the first page of the contents of the DMG says:

The D&D rules help you and the other players have a good time, but the rules aren’t in charge. You’re the DM, and you are in charge of the game.

Getting back on track, what I meant is: no amount of text could cover every possible mechanic and interaction in the game. As a real life law student (please be lenient in the comments), I can assure you, however you spell a rule, it will be always be open to abuses both in favor and against its subjects, which is why one of the often underestimated roles of a DM outside homewbrewing is to do metaruling, that is to rule on rulings: when to strictly enforce a rule, when to extend its bounds and when to forgo it entirely precisely for the sake of balance. That is why we need human judges to interpret and apply laws in real life (for as long as machines will become smart enough to take that role): whenever the text falls short, understanding why a rule exists and interpreting its intent in a fair way is the way to apply both Rules As Written and Rules as Intended. They are two sides of the same coin after all. Blind faith on the manuals simply can’t solve every problem arising on the table, and even the most conservative interpretation must withstand possible future complications or be overruled when its blindsides have been exposed. No amount of tweets from the almighty JC (which I think are both a blessing and a bane since, again, the game is not perfect at all) can solve any situation in one optimal, definitive way. So let’s stop pretending there is this authentic way to play D&D vanilla.

Sometimes one has to think outside the box to understand what the box was all about.

Do you agree?

Warlock Eldritch master good for nothing?

I find the Warlock level 20 feature Eldritch Master totally useless as it states:

Eldritch Master: At 20th level, you can draw on your inner reserve of mystical power while entreating your patron to regain expended spell slots. You can spend 1 minute entreating your patron for aid to regain all your expended spell slots from your Pact Magic feature. Once you regain spell slots with this feature, you must finish a long rest before you can do so again.

But your spell slots are always recharged on a short rest.

Spell Slots: The Warlock table shows how many spell slots you have. The table also shows what the level of those slots is; all of your spell slots are the same level. To cast one of your warlock spells of 1st level or higher, you must expend a spell slot. You regain all expended spell slots when you finish a short or long rest.

So, what’s the point of Eldritch Master? I thought that maybe an errata and the recharged slots are the ones from Mystic Arcanum, that would be a good 20th level feature.

We are using a short rest variant that makes short rests 5-10 minutes instead of an hour.

Nothing in dashboard that uses javascript works

I cannot see the media I have uploaded under the Media Library–it’s a blank space(though I can upload with the html uploader ).

I cannot use the Select All checkbox to select all the plugins on the Plugins page. (I have to do them one at a time)

I cannot set a page or post to Draft.

In short, if it needs javascript, it doesn’t work.

I have disabled ALL the plugins AND used a default theme (at the same time).

I have tried to install a few security plugins, but they all seem to use javascript. I have however run a few online scans and no malware turns up.

I was editing some images the day before, and it was working fine.

I don’t know what else to do besides build the site back up from scratch.

I am running PHP 7.3.24 WordPress 5.5.3 (the latest I believe)

Any ideas?

Edited to add that I have entirely replaced the wp-includes and the wp-admin folders. Also note that the site otherwise seems to work perfectly

Plotting a well defined function displays nothing for two-thirds of the range required

The plot in question concerns the second derivative of an inverse Laplace transform (ILT) of a function with five parameters. Here is the ILT

ClearAll["Global`*"] prod = (s - cr1) (s - cr2) (s - cr3) (s - cr4); LW = (1 + s)^2/(si prod); Print["symbolic W'=", Wp = D[InverseLaplaceTransform[LW, s, x], x]] 

Four parameters are functions of the fifth parameter "si", defined as the roots of a fourth order equation

cr = {cr1, cr2, cr3, cr4} =     s /. Solve[si s^2 + 107 s/5 + 10 ((1 + s)^(-2) - 1) - 1/10 == 0,       s]; 

Plotting the first derivative of the ILT takes .64

lx = 13; Timing[  pd = Plot[Evaluate[Wp /. si -> 1], {x, 0, lx},     PlotRange -> {{0, lx}, {0.0225, .0275}}]] 

Plotting of the second derivative of the ILT takes 14.84 and displays nothing for two-thirds of the range lx

    Wd = D[Wp, x]; Timing[Plot[(Wd /. si -> 1), {x, 0, lx},   PlotRange -> {{0, lx}, {-0.002, .002}}]] 

Plot3D showing nothing

I tried to plot f(x,y) = cos(x + y) + sin a(x-y) where 0<=a<=10. I used Plot3D[f[x, y], {x, 0, 10}, {y, 0, 10}, AxesLabel -> {"x", "y"},ColorFunction -> GrayLevel]and it’s not working and I think it’s because I left out the condition for ‘a’. I am also unsure how to include ‘a’ inside the Plot3D function.

Pentesting : what should one do if nothing is returned from Vulnerability Assessment

A typicall pentesting activity has the following step :

   1 - information gathering + enumeration    2 - vulnerability assessment (vulnerability scanning)    3 - exploitation    4 - post exploitation (persistence, clearing tracks, etc...)    5 - report writing 

Step 1 to 4 can be a cycle after getting a foothold.

But what do you do if you don’t get that foothold. That is, on the iteration, Step 2 (Vulnerability scanning) does not return any vulnerable service nor configuration. If social engineering is not part of the deal, does it mean it’s pretty much game over ?

Can a hacker access your email address and then choose to do nothing?

Okay, I know my question might sound a bit weird, but I am in a situation where I need knowledge on the subject (btw, if someone can assure me that there was never a Discord or Google data breach since 2018, even unknown to the public, I would be grateful).

I have done a bit of research on what hackers look for in an email address, and it looks like any information is valuable to them, but a friend that knows about the subject has told me that it was possible that a hacker decides to do nothing to your account if you’re "broke or a child".

I was confused, because I think even in that case, it would be possible (and useful) for them to send emails to my contacts on my behalf or log me out and ask for ransom or something like that.

So, is it really possible that a hacker just gives up on your address, and if so, how likely is that ?