Skip to content
  • Home
  • About
  • No Access
  • Privacy Policy
Bits of .NET
Bits of .NET
  • Asp.Net Core
  • C#
  • SQL
  • JavaScript
  • CSS
  • About
  • ErcanOPAK.com
  • No Access
  • Privacy Policy

Bits of .NET

Daily micro-tips for C#, SQL, performance, and scalable backend engineering.

  • Asp.Net Core
  • C#
  • SQL
  • JavaScript
  • CSS
  • About
  • ErcanOPAK.com
  • No Access
  • Privacy Policy

Category: Wordpress

Wordpress

WordPress: Fix Post Revisions That Silently Pile Up and Bloat Your Database Because WP_POST_REVISIONS Was Never Limited

- 16.10.26 - ErcanOPAK comment on WordPress: Fix Post Revisions That Silently Pile Up and Bloat Your Database Because WP_POST_REVISIONS Was Never Limited

πŸ“ The Revisions Nobody Told to Stop Piling Up WordPress saves a new post revision on practically every save by default, and unless WP_POST_REVISIONS is explicitly defined in wp-config.php, it keeps every single one forever. For a post edited fifty times over its life, that’s fifty extra rows sitting in wp_posts that never get cleaned […]

Read More
Wordpress

WordPress: Fix wp_remote_get Calls to an External API That Silently Fail Because of a Missing SSL Certificate Verification Setting

- 16.10.26 - ErcanOPAK comment on WordPress: Fix wp_remote_get Calls to an External API That Silently Fail Because of a Missing SSL Certificate Verification Setting

πŸ“ The External API Call WordPress Quietly Refused to Trust wp_remote_get() and the rest of WordPress’s HTTP API verify the remote server’s SSL certificate by default via the sslverify argument – which is the correct, secure default. But on a host with an outdated local CA certificate bundle, a server clock that’s drifted enough to […]

Read More
Wordpress

WordPress: Fix a Scheduled Post That Silently Stays in Draft Because WP-Cron Never Actually Fires

- 16.10.26 - ErcanOPAK comment on WordPress: Fix a Scheduled Post That Silently Stays in Draft Because WP-Cron Never Actually Fires

πŸ“ The Scheduled Post That Waited Forever to Go Live WordPress doesn’t run a real background scheduler by default – wp-cron.php, which is responsible for publishing scheduled posts at their set time, only runs when triggered by an actual visitor hitting the site. A low-traffic site can go hours without a single page view, during […]

Read More
Wordpress

WordPress: Fix a Multisite Subsite That Silently Loses Its Uploaded Media After a Domain Mapping Change

- 16.10.26 - ErcanOPAK comment on WordPress: Fix a Multisite Subsite That Silently Loses Its Uploaded Media After a Domain Mapping Change

πŸ“ The Subsite That Lost Its Media Over a Domain Change WordPress Multisite stores each subsite’s uploaded media URLs as absolute addresses baked directly into post content and the database at upload time, tied to whatever domain was active then. Remap a subsite to a new custom domain – a common step when a client […]

Read More
Wordpress

WordPress: Fix a Plugin Update That Silently Breaks Because It Only Deployed to Some Servers in a Load-Balanced Hosting Setup

- 15.10.26 - ErcanOPAK comment on WordPress: Fix a Plugin Update That Silently Breaks Because It Only Deployed to Some Servers in a Load-Balanced Hosting Setup

πŸ“ The Update That Only Half Your Site Got On a load-balanced WordPress hosting setup where each web server keeps its own local copy of wp-content rather than sharing one filesystem across all servers, running a plugin update through the WordPress admin only updates the files on whichever single server happened to handle that particular […]

Read More
Wordpress

WordPress: Fix a Caching Plugin That Silently Serves the Logged-In Admin Bar’s HTML to Every Anonymous Visitor

- 15.10.26 - ErcanOPAK comment on WordPress: Fix a Caching Plugin That Silently Serves the Logged-In Admin Bar’s HTML to Every Anonymous Visitor

πŸ“ The Cache That Logged Everyone In A full-page caching plugin that doesn’t correctly vary its cache by login state can capture a page as rendered for a logged-in user – complete with the WordPress admin bar and any logged-in-only UI – and then serve that exact cached HTML to every anonymous visitor who requests […]

Read More
Wordpress

WordPress: Fix a Multisite Subsite That Can’t Upload Any Media Because Its Site-Specific Upload Folder Was Never Created

- 15.10.26 - ErcanOPAK comment on WordPress: Fix a Multisite Subsite That Can’t Upload Any Media Because Its Site-Specific Upload Folder Was Never Created

πŸ“ The Subsite That Had No Folder to Put Anything In A WordPress Multisite network stores each subsite’s uploads in its own folder under wp-content/uploads/sites/<blog-id>/, created automatically the first time that subsite actually needs it – but that automatic creation depends on the webserver process having write permission at that level, and a network migrated […]

Read More
Wordpress

WordPress: Fix a Block Theme’s theme.json Settings That Get Replaced Instead of Merged Because the Child Theme Defined Its Own theme.json

- 15.10.26 - ErcanOPAK comment on WordPress: Fix a Block Theme’s theme.json Settings That Get Replaced Instead of Merged Because the Child Theme Defined Its Own theme.json

πŸ“ The Child Theme Settings That Wiped the Parent’s Instead of Adding to Them A classic child theme’s style.css only ever adds to or overrides specific parent styles, which trains most WordPress users to expect child themes to layer on top of whatever the parent already defined – but a block theme’s theme.json doesn’t work […]

Read More
Wordpress

WordPress: Fix a Site Health Critical Issue Because Loopback Requests Fail After Migrating to a New Host

- 15.10.26 - ErcanOPAK comment on WordPress: Fix a Site Health Critical Issue Because Loopback Requests Fail After Migrating to a New Host

πŸ“ The Site Health Warning That Traced Back to a Loopback WordPress relies on ‘loopback requests’ – the server calling back to its own site’s URL – for things like checking for plugin/theme updates on a schedule and running certain scheduled tasks reliably. After a host migration, it’s common for the server’s own hostname resolution, […]

Read More
Wordpress

WordPress: Fix Oembed Previews That Render as a Plain Link Instead of an Embedded Video After a Theme Update

- 15.10.26 - ErcanOPAK comment on WordPress: Fix Oembed Previews That Render as a Plain Link Instead of an Embedded Video After a Theme Update

πŸ“ The Video Embed That Became a Plain Link Pasting a YouTube or Vimeo URL on its own line in the block editor relies on WordPress’s oEmbed system fetching embed data from the provider and the active theme actually styling and sizing the resulting iframe correctly. A theme update that changes how it handles the […]

Read More
Wordpress

WordPress: Fix Scripts That Load in the Wrong Order Because a Custom Handle Name Collided With a Plugin’s

- 11.10.26 - ErcanOPAK comment on WordPress: Fix Scripts That Load in the Wrong Order Because a Custom Handle Name Collided With a Plugin’s

πŸ“ The Script Handle That Belonged to Someone Else Too wp_enqueue_script() identifies every registered script by a handle – a short string you choose – and that handle is the only thing WordPress uses to track dependencies and load order; it is not namespaced to your theme or plugin in any way, so if a […]

Read More
Wordpress

WordPress: Fix REST API Requests Returning 401 Because a Security Plugin Disabled Application Passwords

- 11.10.26 - ErcanOPAK comment on WordPress: Fix REST API Requests Returning 401 Because a Security Plugin Disabled Application Passwords

πŸ“ The REST API That a Security Plugin Quietly Locked WordPress Application Passwords are the standard, built-in way for external tools to authenticate against the REST API without using a user’s actual login password, and they’re enabled by default in modern WordPress – but a number of security/hardening plugins explicitly disable them as part of […]

Read More
Wordpress

WordPress: Fix a WP_Query meta_query That Silently Returns the Wrong Posts Because Multiple Clauses Default to AND Without a Relation Key

- 11.10.26 - ErcanOPAK comment on WordPress: Fix a WP_Query meta_query That Silently Returns the Wrong Posts Because Multiple Clauses Default to AND Without a Relation Key

πŸ“ The meta_query That Assumed AND Without Asking A meta_query array with two or more clauses needs an explicit relation key to say how those clauses should be combined, and leaving that key out doesn’t leave the behavior undefined – WP_Query quietly defaults to AND. A query meant to find listings that are either featured […]

Read More
Wordpress

WordPress: Fix wp-cron Tasks That Quietly Stop Firing on a Low-Traffic Site Because DISABLE_WP_CRON Was Set Without a Real Server Cron to Replace It

- 11.10.26 - ErcanOPAK comment on WordPress: Fix wp-cron Tasks That Quietly Stop Firing on a Low-Traffic Site Because DISABLE_WP_CRON Was Set Without a Real Server Cron to Replace It

πŸ“ The Cron That Nobody Was Left to Check DISABLE_WP_CRON set to true does exactly one thing: it turns off WordPress’s default habit of checking for due scheduled events on every single page load. It does not disable scheduled tasks themselves, and it does not set up anything to replace that check – the two […]

Read More
Wordpress

WordPress: Fix a Custom REST API Endpoint That Silently 404s Because the Route Was Registered After rest_api_init Already Fired

- 11.10.26 - ErcanOPAK comment on WordPress: Fix a Custom REST API Endpoint That Silently 404s Because the Route Was Registered After rest_api_init Already Fired

πŸ“ The REST Route That 404s Until the Right Moment WordPress builds its entire REST API routing table once, during the rest_api_init action, and register_rest_route calls made after that specific action has already fired are simply too late – they never make it into the routing table for the current request at all, no matter […]

Read More
Wordpress

WordPress: Fix Pagination Links That Silently 404 on Any Page Past the First Because a Custom Query Reset the Main Query’s Paged Parameter

- 11.10.26 - ErcanOPAK comment on WordPress: Fix Pagination Links That Silently 404 on Any Page Past the First Because a Custom Query Reset the Main Query’s Paged Parameter

πŸ“ The Pagination That Forgot Page Two Existed WordPress figures out which page of results to show by reading the paged query variable off the main query before a theme template ever runs, which works correctly until a template or plugin runs its own custom WP_Query or get_posts call earlier in the page, builds its […]

Read More
Wordpress

WordPress: Fix a Block Editor Pattern That Reverts to Default Styling Every Time You Reinsert It From the Pattern Library

- 10.10.26 - ErcanOPAK comment on WordPress: Fix a Block Editor Pattern That Reverts to Default Styling Every Time You Reinsert It From the Pattern Library

πŸ“ The Saved Pattern That Forgets Its Own Styling A block pattern saved from the editor captures the block markup and its explicit block-level attributes, but any styling applied through the site editor’s Styles panel at the theme or global level, rather than as explicit attributes on the block itself, isn’t part of the pattern; […]

Read More
Wordpress

WordPress: Fix Gutenberg Blocks That Silently Lose Their Custom Attributes Every Time the Plugin Bumps the Block’s Version Number

- 10.10.26 - ErcanOPAK comment on WordPress: Fix Gutenberg Blocks That Silently Lose Their Custom Attributes Every Time the Plugin Bumps the Block’s Version Number

πŸ“ The Block Attribute That Doesn’t Survive Its Own Version Bump A block’s attributes schema defines what WordPress parses out of the saved HTML comment delimiters when loading a post for editing. Bumping a block’s version or changing its attribute schema without a deprecated migration path that explicitly carries forward every previously-defined attribute means any […]

Read More
Wordpress

WordPress: Fix User Role Capabilities That Silently Reset to Defaults Every Time a Plugin’s Activation Hook Runs Again

- 10.10.26 - ErcanOPAK comment on WordPress: Fix User Role Capabilities That Silently Reset to Defaults Every Time a Plugin’s Activation Hook Runs Again

πŸ“ The Role That Kept Forgetting What It Learned A plugin that adds custom capabilities to an existing role, say granting Editors the ability to manage a custom post type, typically does that work inside its activation hook, under the reasonable assumption that activation happens exactly once, the moment the plugin is installed and turned […]

Read More
Wordpress

WordPress: Fix a Media Upload That Succeeds but Silently Strips All EXIF and GPS Data Because of a Privacy-Focused Image Plugin

- 10.10.26 - ErcanOPAK comment on WordPress: Fix a Media Upload That Succeeds but Silently Strips All EXIF and GPS Data Because of a Privacy-Focused Image Plugin

πŸ“ The Photo That Forgot Where It Was Taken A privacy or performance-focused image optimization plugin that strips EXIF metadata on upload, often specifically to remove GPS coordinates and camera identifiers for good privacy reasons, typically does so unconditionally for every image, with no per-upload option and often no clear setting even exposed in its […]

Read More
Wordpress

WordPress: Fix an admin-ajax Request That Returns 0 for Logged-Out Visitors Because Only wp_ajax_, Not wp_ajax_nopriv_, Was Registered

- 10.10.26 - ErcanOPAK comment on WordPress: Fix an admin-ajax Request That Returns 0 for Logged-Out Visitors Because Only wp_ajax_, Not wp_ajax_nopriv_, Was Registered

πŸ“ The Ajax Handler That Only Worked While Logged In admin-ajax.php routes every incoming Ajax request to an action hook based on the logged-in status of whoever’s making the request: a logged-in user’s request fires wp_ajax_{action}, while a logged-out visitor’s identical request fires wp_ajax_nopriv_{action} instead – a completely separate hook that requires its own explicit […]

Read More
Wordpress

WordPress: Fix a Custom Taxonomy Archive That 404s Only After You Change the Taxonomy’s Rewrite Slug

- 10.10.26 - ErcanOPAK comment on WordPress: Fix a Custom Taxonomy Archive That 404s Only After You Change the Taxonomy’s Rewrite Slug

πŸ“ The Archive That Forgot Its Own New Address WordPress generates the rewrite rules that map incoming URLs to the right query – including a custom taxonomy’s archive pages – from whatever slug is currently defined in register_taxonomy’s rewrite argument, but those generated rules are cached in the database, not recalculated on every request. Changing […]

Read More
Wordpress

WordPress: Fix Search Results That Return Pages From a Theme You Deactivated Months Ago

- 04.10.26 - ErcanOPAK comment on WordPress: Fix Search Results That Return Pages From a Theme You Deactivated Months Ago

πŸ“ The Search Results Still Haunted by an Old Theme WordPress’s built-in search queries the posts table directly and has no awareness of which theme happens to be active, which is exactly why switching themes normally has no effect on search results at all – but a page builder or a theme-specific plugin that registered […]

Read More
Wordpress

WordPress: Fix a Plugin Update That Silently Reverts Every Customized Setting Back to Its Default Values

- 04.10.26 - ErcanOPAK comment on WordPress: Fix a Plugin Update That Silently Reverts Every Customized Setting Back to Its Default Values

πŸ“ The Update That Forgot Everything You’d Changed A plugin update is supposed to replace only its own code, leaving whatever settings you configured through its admin screen untouched in the database – but a plugin that stores its settings as one large serialized option, rather than as individual option entries, can overwrite that entire […]

Read More
Wordpress

WordPress: Fix a REST API Request That Returns Invalid Nonce Only After the Tab Has Been Open for a While

- 04.10.26 - ErcanOPAK comment on WordPress: Fix a REST API Request That Returns Invalid Nonce Only After the Tab Has Been Open for a While

πŸ“ The Request That Worked an Hour Ago and Not Anymore A REST API nonce is tied to the logged-in user’s session and expires on a rolling window – roughly half a day to a full day by default, but effectively much sooner in practice for a screen or a custom editor extension that fetches […]

Read More
Wordpress

WordPress: Fix Scheduled Posts and Plugin Tasks That Stop Firing Because wp-cron Only Runs on Page Visits

- 04.10.26 - ErcanOPAK comment on WordPress: Fix Scheduled Posts and Plugin Tasks That Stop Firing Because wp-cron Only Runs on Page Visits

πŸ“ The Scheduled Task That Was Waiting for a Visitor Who Never Came WordPress does not run a real, continuously active scheduler by default – its own cron check is triggered as a side effect of an actual page load, checking on every single request whether any scheduled task is overdue and running it inline […]

Read More
Wordpress

WordPress: Fix Featured Images That Disappear From RSS Feeds While Still Showing Fine on the Site

- 04.10.26 - ErcanOPAK comment on WordPress: Fix Featured Images That Disappear From RSS Feeds While Still Showing Fine on the Site

πŸ“ The Featured Image That Only Existed on the Website A post’s featured image shows up on the site because the active theme explicitly calls the_post_thumbnail() somewhere in its template files – but WordPress’s default RSS feed template has no equivalent call built in at all, since a feed is a different rendering path entirely, […]

Read More
Wordpress

WordPress: Fix a Multisite Network Where New Subsites Keep Inheriting the Wrong Default Theme

- 04.10.26 - ErcanOPAK comment on WordPress: Fix a Multisite Network Where New Subsites Keep Inheriting the Wrong Default Theme

πŸ“ The New Subsite That Inherited a Theme Nobody Chose for It A WordPress multisite network has one setting, under Network Admin, for which theme newly created subsites activate automatically – separate from whatever theme the main site happens to be using, and separate from which themes are merely network-enabled for individual site admins to […]

Read More
Wordpress

WordPress: Fix a Caching Plugin That Keeps Serving an Outdated robots.txt to Search Engines

- 03.10.26 - ErcanOPAK comment on WordPress: Fix a Caching Plugin That Keeps Serving an Outdated robots.txt to Search Engines

πŸ“ The robots.txt File That Search Engines Kept Reading From the Past WordPress generates a virtual robots.txt on the fly by default, assembling it from site settings each time it’s requested, which works fine until a full-page caching plugin or a server-level cache layer decides that response is cacheable and stores a copy of it […]

Read More
Wordpress

WordPress: Fix Child Theme Styles That Silently Stop Overriding the Parent Theme After a Core Update

- 03.10.26 - ErcanOPAK comment on WordPress: Fix Child Theme Styles That Silently Stop Overriding the Parent Theme After a Core Update

πŸ“ The Child Theme Styles That the Parent Quietly Started Winning Against A child theme’s style.css is supposed to load after the parent theme’s, which is the entire mechanism that lets its rules override the parent’s defaults – but that ordering depends on the child theme correctly enqueuing the parent’s stylesheet as its own dependency […]

Read More
Page 4 of 13
Β« Previous 1 2 3 4 5 6 7 8 9 … 13 Next Β»

Posts pagination

« Previous 1 2 3 4 5 6 … 13 Next »
November 2026
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
30  
« Oct    

Most Viewed Posts

  • How to make theater mode the default for Youtube (1,068)
  • Get the User Name and Domain Name from an Email Address in SQL (990)
  • How to add default value for Entity Framework migrations for DateTime and Bool (986)
  • Get the First and Last Word from a String or Sentence in SQL (865)
  • How to select distinct rows in a datatable in C# (859)
  • How to enable, disable and check if Service Broker is enabled on a database in SQL Server (661)
  • Add Constraint to SQL Table to ensure email contains @ (619)
  • Average of all values in a column that are not zero in SQL (577)
  • How to use Map Mode for Vertical Scroll Mode in Visual Studio (553)
  • Find numbers with more than two decimal places in SQL (481)

Recent Posts

  • Network Speed Monitor Windows Application v2.5.1
  • Ağ HΔ±zΔ± Δ°zleyici Windows UygulamasΔ± v2.5.1
  • How to make theater mode the default for Youtube
  • The AI Prompt That Audits a Function for Thread-Safety Gaps
  • Ajax: Fix a Fetch Request Caching a Response Despite No-Store
  • WordPress: Fix a Navigation Block Losing Submenu Items After Sync
  • Visual Studio: Fix CodeLens Reference Counts Stuck at Stale Numbers
  • C#: Fix a UTF-8 String Literal Behaving Differently in a Switch
  • Photoshop: Fix a Liquify Mesh Snapping Back on a Smart Object
  • The AI Prompt That Turns a Crash Dump Into a Short Repro Script

Most Viewed Posts

  • How to make theater mode the default for Youtube (1,068)
  • Get the User Name and Domain Name from an Email Address in SQL (990)
  • How to add default value for Entity Framework migrations for DateTime and Bool (986)
  • Get the First and Last Word from a String or Sentence in SQL (865)
  • How to select distinct rows in a datatable in C# (859)

Recent Posts

  • Network Speed Monitor Windows Application v2.5.1
  • Ağ HΔ±zΔ± Δ°zleyici Windows UygulamasΔ± v2.5.1
  • How to make theater mode the default for Youtube
  • The AI Prompt That Audits a Function for Thread-Safety Gaps
  • Ajax: Fix a Fetch Request Caching a Response Despite No-Store

Social

  • ErcanOPAK.com
  • GoodReads
  • LetterBoxD
  • Linkedin
  • The Blog
  • Twitter
© 2026 Bits of .NET | Built with Xblog Plus free WordPress theme by wpthemespace.com