<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Farhan Shafi</title>
    <description>The latest articles on DEV Community by Farhan Shafi (@farhanshafi).</description>
    <link>https://dev.to/farhanshafi</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1138141%2F59df4be7-7549-4256-9ea5-99cd2ada226a.jpg</url>
      <title>DEV Community: Farhan Shafi</title>
      <link>https://dev.to/farhanshafi</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/farhanshafi"/>
    <language>en</language>
    <item>
      <title>WordPress 7.2 beta: 6 changes plugin and block developers should test before December 8</title>
      <dc:creator>Farhan Shafi</dc:creator>
      <pubDate>Fri, 30 Oct 2026 10:14:44 +0000</pubDate>
      <link>https://dev.to/farhanshafi/wordpress-72-beta-6-changes-plugin-and-block-developers-should-test-before-december-8-5g3e</link>
      <guid>https://dev.to/farhanshafi/wordpress-72-beta-6-changes-plugin-and-block-developers-should-test-before-december-8-5g3e</guid>
      <description>&lt;p&gt;WordPress 7.2 is in beta. RC1 is on November 17 and the final release is planned for December 8.&lt;/p&gt;

&lt;p&gt;The WordPress Developer Blog published its October "What's new for developers?" roundup. Most of it is new features. These six items are different: they can change how your existing plugin or block behaves. Only one of them is a plain deprecation.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. wp_kses() on the HTML API
&lt;/h2&gt;

&lt;p&gt;WordPress is rebuilding its HTML sanitizer on top of the HTML API. The new parser normalizes output, strips the contents of script and style elements, and rejects some malformed SVG, MathML and comments. This is targeted for 7.2 or 7.3.&lt;/p&gt;

&lt;p&gt;What to check: any code that stores or compares sanitized HTML, especially SVG and inline markup. The filter &lt;code&gt;wp_kses_force_legacy_parser&lt;/code&gt; restores the old behavior, but the Developer Blog calls it a stopgap. Breakage should be reported on Trac ticket 66208.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. NO_BACKSLASH_ESCAPES is gone from the wpdb session
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;wpdb&lt;/code&gt; now strips &lt;code&gt;NO_BACKSLASH_ESCAPES&lt;/code&gt; from WordPress's own database session. Plugins and mu-plugins load too late to change that. To keep the mode, remove it from the &lt;code&gt;incompatible_sql_modes&lt;/code&gt; filter inside a &lt;code&gt;db.php&lt;/code&gt; drop-in:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="c1"&gt;// wp-content/db.php&lt;/span&gt;
&lt;span class="nf"&gt;add_filter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="s1"&gt;'incompatible_sql_modes'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="nv"&gt;$modes&lt;/span&gt; &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nb"&gt;array_diff&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="nv"&gt;$modes&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;array&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="s1"&gt;'NO_BACKSLASH_ESCAPES'&lt;/span&gt; &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;What to check: raw queries that assume backslashes are literal characters.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Core icons are stroke based
&lt;/h2&gt;

&lt;p&gt;About 330 Core icons now use strokes and set &lt;code&gt;fill: none&lt;/code&gt; inline on the &lt;code&gt;&amp;lt;svg&amp;gt;&lt;/code&gt;. A &lt;code&gt;fill&lt;/code&gt; prop or a CSS &lt;code&gt;fill&lt;/code&gt; rule no longer recolors them. Use CSS &lt;code&gt;color&lt;/code&gt; instead.&lt;/p&gt;

&lt;p&gt;What to check: admin styles with &lt;code&gt;svg { fill: ... }&lt;/code&gt; rules that hit Core icons. Update &lt;code&gt;@wordpress/icons&lt;/code&gt; and &lt;code&gt;@wordpress/components&lt;/code&gt; together.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Link-color classes on four blocks
&lt;/h2&gt;

&lt;p&gt;Accordion, Tabs, Tab Panel and Post Template now output &lt;code&gt;has-link-color&lt;/code&gt; and related classes.&lt;/p&gt;

&lt;p&gt;What to check: specificity collisions between your CSS and the new classes.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Footnote IDs have an fn- prefix
&lt;/h2&gt;

&lt;p&gt;What to check: code that selects or links footnotes by ID.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Deprecated components
&lt;/h2&gt;

&lt;p&gt;Divider, ResponsiveWrapper, Scrollable, ZStack and Elevation from &lt;code&gt;@wordpress/components&lt;/code&gt; are deprecated since 7.2, with removal planned for 7.4. The page suggests CSS &lt;code&gt;aspect-ratio&lt;/code&gt; for ResponsiveWrapper and the Separator component for Divider. In MediaUpload, &lt;code&gt;unstableFeaturedImageFlow&lt;/code&gt; is now &lt;code&gt;featuredImageFlow&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Before you ship
&lt;/h2&gt;

&lt;p&gt;Run your plugin on a staging site with the 7.2 beta and watch the browser console and the PHP error log. If something breaks, report it now. A fix during beta is much cheaper than one after December 8.&lt;/p&gt;

&lt;p&gt;Source: &lt;a href="https://developer.wordpress.org/news/2026/10/whats-new-for-developers-october-2026/" rel="noopener noreferrer"&gt;What's new for developers? (October 2026)&lt;/a&gt;&lt;/p&gt;

</description>
      <category>wordpress</category>
      <category>gutenberg</category>
      <category>php</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Hi, I'm Farhan. I build WordPress plugins and Next.js apps</title>
      <dc:creator>Farhan Shafi</dc:creator>
      <pubDate>Sun, 25 Oct 2026 18:52:23 +0000</pubDate>
      <link>https://dev.to/farhanshafi/hi-im-farhan-i-build-wordpress-plugins-and-nextjs-apps-41h4</link>
      <guid>https://dev.to/farhanshafi/hi-im-farhan-i-build-wordpress-plugins-and-nextjs-apps-41h4</guid>
      <description>&lt;p&gt;Hi DEV, I'm Farhan, a WordPress and full-stack developer from Karachi, Pakistan.&lt;/p&gt;

&lt;p&gt;I work at DotCamp on WordPress plugins and Gutenberg blocks: Ultimate Blocks (used on 50,000+ sites), Tableberg, GalleryBerg and SliderBerg. I also build Next.js and React apps.&lt;/p&gt;

&lt;p&gt;I joined DEV in 2023 and never posted, so this is the start.&lt;/p&gt;

&lt;p&gt;If you build with WordPress or Gutenberg, say hi in the comments.&lt;/p&gt;

</description>
      <category>introduction</category>
      <category>wordpress</category>
      <category>webdev</category>
      <category>gutenberg</category>
    </item>
  </channel>
</rss>
