Commit Graph

244 Commits

Author SHA1 Message Date
Ismail El Korchi f94fc1e59b Fix PHP, CSS AND JS coding standards 2020-04-05 21:49:27 +01:00
bmcculley d1bb60c041 escape get_the_title
use wp_kses_post function on get_the_title to prevent potential
malicious issues.

Add wp_body_open() shim for sites older than 5.2

Bottom margin in image alignment

As proposed in #1273, `margin-botom: 1.5em;` added to all three image alignment classes.

tab line 178 inc/woocommerce.php

tab line 61 inc/custom-header.php

update additional get_the_title instances

switch from esc_html to wp_kses_post
2020-03-29 16:55:05 -04:00
Ismail El Korchi 04ead0d757
Merge pull request #1385 from wpamitkumar/wpamitkumar
Update reference link URL & Fix Typo Error.
2020-03-28 12:31:21 +01:00
Amit Dudhat 72013c79c0 Update reference link URL & Fix Typo Error. 2020-03-28 16:03:01 +05:30
Arnab Wahid 132319ee8e
Merge pull request #1301 from arnabwahid/master
image alignment fix + mitigate build error in `woocommerce.php`
2020-03-23 22:47:07 +00:00
Danny Cooper 8573a2a325 Add wp_body_open() shim for sites older than 5.2 2019-03-28 14:13:32 +00:00
Viktor Szépe 399c891927
Unscramble echo to readable printf
Is it OK?
2018-09-22 06:51:58 +02:00
Arnab Wahid bf61e8ffbe Bottom margin in image alignment
As proposed in #1273, `margin-botom: 1.5em;` added to all three image alignment classes.

tab line 178 inc/woocommerce.php

tab line 61 inc/custom-header.php
2018-06-27 13:59:10 +05:30
alaczek 9274f322d0
Merge pull request #1255 from Automattic/add-neg-tabindex-to-featured-images
Add 'tabindex=-1' to the featured image markup, to improve accessibil…
2018-05-29 11:25:35 +10:00
Laurel f5f3a0a05b
Merge pull request #1173 from benoitchantre/no-sidebar-class
no-sidebar class
2018-04-06 11:02:47 -07:00
Laurel Fulford 43cfcb96dd Add 'tabindex=-1' to the featured image markup, to improve accessibility. 2018-04-02 16:50:45 -07:00
Matthew Boynes 884a7b0821
Fix datetime values 2018-03-16 20:39:14 -04:00
David A. Kennedy 72e34ef6bc
Merge pull request #1267 from jrfnl/feature/cs-update
Bring code style up to the latest standards
- This PR addresses code-style issues identified when testing the code against the WordPress Coding Standards.
2018-03-02 18:45:51 -05:00
Chris Runnells 648d11e2b3
Merge pull request #1229 from SergeyBiryukov/patch-2
Clarify "singularly identifiable articles"
2018-03-02 13:37:07 -10:00
Laurel Fulford 47829ce9cd Replace the get_post_format() calls in get_template_part() to complete the post format removal that was started in #1017. Fixes #1148. 2018-02-27 17:07:58 -08:00
jrfnl eb091acf66 CS: reformat a very long line
This line was quite unreadable.

Additionally, it was using the "heavy" `wp_kses_data()` function to escape item count phrase, while that phrase should not contain HTML in the first place and therefore can use the lighter `esc_html()` function to do the output escaping.
2018-02-27 14:34:55 +01:00
jrfnl 1abaebcdaa CS: correct indentation of a newly introduced function 2018-02-27 14:34:54 +01:00
jrfnl ec877e48c3 CS: fix up embedded PHP inconsistencies introduced in the mean time. 2018-02-27 14:34:54 +01:00
Ulrich Pogson b26b6ebfa4 Move PHP tags on it’s own line & correct indention
This fixes a few of the errors from the news sniffs in WPCS 0.12.0 and also standardizes the indention between the PHP and HTML
2018-02-27 14:34:53 +01:00
jrfnl 54ad32a598 🔖 CS: whitelist two global variable overrides
The one in `functions.php` can be considered a bug in WPCS and has been reported as such.
Once that issue is fixed, the whitelisting can be removed.

The one in `inc/wpcom.php` will need to remain as WPCS does not keep track of globals introduced by wpcom.
2018-02-27 14:34:53 +01:00
Laurel 388951f1ee
Merge pull request #1226 from Ismail-elkorchi/_s_posted
Split _s_posted_on into two functions
2018-01-26 09:50:01 -08:00
Laurel 115dd8209c
Merge pull request #1158 from Automattic/add-featured-image-content-options
_s: Add featured images to Post and Pages with the ability to hide them via Content Options.
2017-12-13 09:17:23 -08:00
laurelfulford c6427768ef Update array using associative keys to have each value on a new line. 2017-12-12 15:26:47 -10:00
Benoît Chantre 100081feee Use full width layout when there’s no sidebar 2017-11-12 20:37:24 +01:00
Sergey Biryukov 120875117c
Clarify "singularly identifiable articles" 2017-11-01 03:17:09 +01:00
Thomas Guillot 2a1a954b98 Replace `'echo=0'` with `array( 'echo' => false )` and remove duplicate function 2017-10-30 10:57:58 +00:00
Ismail El Korchi 2d74ebd7c9 Split _s_posted_on into two functions 2017-10-29 15:31:22 +00:00
Thomas Guillot ce47408461 Remove `aria-hidden` attribute from the post thumbnail link 2017-09-28 16:00:04 +01:00
Tiago Noronha 24b0596c71 Load WooCommerce Star fonts via inline styles. 2017-08-28 22:15:22 +01:00
Tiago Noronha 48ed0b7e11 Add commas to each array value. 2017-08-18 19:13:21 +01:00
Tiago Noronha 5d5eb2105d Newline character. 2017-08-18 19:10:10 +01:00
Tiago Noronha 7cb40fa6ce Associative arrays keys should start on a new line. 2017-08-18 19:09:44 +01:00
Tiago Noronha f26859169b Tweaks to docblocks. 2017-08-18 19:03:03 +01:00
Tiago Noronha b87901e508 Add link to new product gallery documentation. 2017-08-18 18:53:02 +01:00
Tiago Noronha 4081a62eae Tweak mini cart implementation comment. 2017-08-07 00:14:51 +01:00
Tiago Noronha d9ad954cdf Move mini cart implementation example inside woocommerce.php 2017-08-07 00:06:52 +01:00
Tiago Noronha 579ad2eeea Second arg of the_widget is an array. 2017-08-07 00:04:22 +01:00
Tiago Noronha e72ba5b291 Remove global variable. 2017-08-07 00:00:35 +01:00
Tiago Noronha b0a272a755 Merge array with wp_parse_args. 2017-08-06 23:55:29 +01:00
Tiago Noronha 3e5f77d27c Remove unnecessary filters. 2017-08-06 23:49:25 +01:00
Tiago Noronha 115319d206 Remove extra line break between the function and the hook. 2017-08-06 23:46:41 +01:00
Tiago Noronha bf725e430f Replace see with @link 2017-08-06 23:44:38 +01:00
Thomas Guillot 92bcf64ba4 Merge remote-tracking branch 'origin/add-featured-image-content-options' into add-featured-image-content-options 2017-08-03 12:44:05 +01:00
Thomas Guillot 387df73308 _s: Add featured images to Post and Pages with the ability to hide them via Content Options.
_s: Fix Travis CI error

_s: Add missing coma in array
2017-08-03 12:40:39 +01:00
Thomas Guillot 10b9a6673a _s: Add featured images to Post and Pages with the ability to hide them via Content Options.
_s: Fix Travis CI error

_s: Add missing coma in array
2017-08-03 10:50:32 +01:00
Tiago Noronha ee3aa735cf Move translators comment to the correct line. 2017-08-01 16:06:15 +01:00
Tiago Noronha 14d29b036d Add missing PHP opening and closing tags. 2017-08-01 15:55:25 +01:00
Tiago Noronha 46a41b2042 Newlines, data validation, and translators comment. 2017-08-01 15:42:22 +01:00
Tiago Noronha 27e68252f6 Basic WooCommerce Integration. 2017-08-01 14:21:13 +01:00
Truong Giang 9fcb8dab40 Correct code indentation 2017-07-27 00:37:56 +07:00