[wp-trac] [WordPress Trac] #56337: Twenty Eleven: alignment in WooCommerce single product page's description tab content

WordPress Trac noreply at wordpress.org
Sat Aug 6 10:47:59 UTC 2022


#56337: Twenty Eleven: alignment in WooCommerce single product page's description
tab content
-------------------------------------------------+-------------------------
 Reporter:  umesh84                              |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  6.1
Component:  Bundled Theme                        |     Version:  6.0
 Severity:  normal                               |  Resolution:
 Keywords:  has-screenshots has-patch needs-     |     Focuses:  ui, css
  testing                                        |
-------------------------------------------------+-------------------------

Comment (by sabernhardt):

 Simplifying the condition like that probably would be safe. The
 `WooCommerce` class has existed since WC 3.0.0 (April 2017), and
 `is_product()` was in that version, too. (See
 [https://plugins.trac.wordpress.org/browser/woocommerce/tags/3.0.0/woocommerce.php#L25
 WooCommerce class] and
 [https://plugins.trac.wordpress.org/browser/woocommerce/tags/3.0.0/includes
 /wc-conditional-functions.php#L73 is_product function].)

 Another option could use the Core `is_singular()` function found within
 `is_product()`:
 {{{
 && ! ( class_exists( 'WooCommerce' ) && is_singular( array( 'product' ) )
 )
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56337#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list