Commit Graph

45 Commits

Author SHA1 Message Date
Claudio Sanches d48f1d4e2e Fixed package tag usage 2020-08-05 13:36:24 -03:00
Claudio Sanches 30e0c6ad87 Prevent empty notices to get added 2020-01-24 13:31:05 -03:00
Claudio Sanches 9d8dd197b5 Added @version flag in updated notice functions 2020-01-23 16:46:01 -03:00
Claudio Sanches e3b2d9f10c Merge branch 'master' into feature/inline-notices 2019-12-04 16:26:10 -03:00
Rodrigo Primo 5ee7197c0f Fix PHPCS errors using PHPCBF 2019-11-14 17:32:24 -03:00
Claudio Sanches d8fed95403 Convert all notice data into HTML data 2019-11-07 20:34:49 -03:00
Claudio Sanches 7024fc8483 Change notices to accept extra data 2019-11-07 20:23:30 -03:00
Claudio Sanches 8a85136561 Introduced woocommerce_kses_notice_allowed_tags filter 2019-10-16 16:45:50 -03:00
Peter Fabian 5b0cc306a5 Moved the wc_kses_notice to wc-notice-functions.php and applied it in wc_print_notices(). 2018-08-21 12:00:48 +02:00
Mike Jolley 8aa214bab5 Better callback 2018-04-19 18:37:07 +01:00
Mike Jolley b28b611bb6 Hook notices into WC areas and support returning notices 2018-04-19 18:26:52 +01:00
Shiva Poudel 7e731fa4c6 PHPCS fixes 2018-01-11 10:39:30 +05:45
Shiva Poudel 4e3317bbe6 Fix - wc_notice_count logic cont... 2018-01-11 10:32:41 +05:45
Mike Jolley 97673e2de8 Fix wc_notice_count logic and add test 2018-01-10 12:43:48 +00:00
Rasmus Bengtsson 185934fad9 Fix phpdoc to include params and correct types 2017-05-15 13:50:52 +02:00
Mike Jolley d7dfdd3d10 Wrap all deprecation calls. 2016-11-23 16:15:00 +00:00
Aristeides Stathopoulos 0516e96843 PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket 2016-09-02 04:33:57 +03:00
Aristeides Stathopoulos f2730eea02 WordPress.WhiteSpace.ControlStructureSpacing.BlankLineAfterEnd 2016-08-27 08:57:05 +03:00
Aristeides Stathopoulos ff852038c9 WordPress.Arrays.ArrayKeySpacingRestrictions.NoSpacesAroundArrayKeys 2016-08-27 06:11:30 +03:00
Aristeides Stathopoulos b063bcfe4c last item in a multiline-array should end in a comma 2016-08-27 04:46:45 +03:00
Mike Jolley a0d14d0baf [fix] Handle notices without outputting outside of template files
Fixes #11112
2016-06-14 11:33:28 +01:00
Mike Jolley ce777b81fd Remove empty notices 2016-02-18 11:04:12 +00:00
Claudio Sanches 5893875b0c Removed period for file headers 2015-11-03 11:53:50 -02:00
Claudio Sanches ee30b5b308 Fixed php docs standards 2015-11-03 11:31:20 -02:00
Mike Jolley a2f05dd368 Show notices before cat loops 2015-06-03 14:22:23 +01:00
Mike Jolley 10dac6fedd process_lost_password/process_reset_password 2015-01-21 14:15:52 +00:00
Mike Jolley 00238bc25b has_notice should return bool 2015-01-06 11:29:40 +00:00
Mike Jolley 744b667ff5 Warnings if notice functions called too early Closes #7050 2015-01-06 11:11:13 +00:00
shivapoudel 60e4250ba6 Absolute path fix for wc-notice-functions.php 2014-09-21 00:54:43 +05:45
Max Rice 81b50b6bd6 Notice functions tweaks 2014-09-05 02:37:12 -04:00
Mike Jolley 85b4ca8c03 wc_has_notice function 2014-01-07 13:35:01 +00:00
Gregory K cdbe5950f0 PhpDocs and TODO comments 2013-11-28 11:49:30 -05:00
Coen Jacobs aaa14894ca Core functions woocommerce to wc refactor 2013-11-25 13:45:04 +01:00
thenbrent 3c625eba5f Use $messages variable for all notice templates 2013-11-13 16:19:59 -08:00
thenbrent a7a7a8ee08 fixup! Store all notices in 'wc_notices' array 2013-11-13 16:19:27 -08:00
thenbrent 8dcf86335c Introduce new wc_print_notice() function 2013-11-13 16:10:31 -08:00
thenbrent 3fa310969f Introduce new wc_get_notices() function
To replace the deprecated Woocommerce->get_messages() and
Woocommerce->get_errors() functions
2013-11-13 16:09:28 -08:00
thenbrent 376c2f26ce Store all notices in 'wc_notices' array
With 'error', 'success' & 'notice' array keys
2013-11-13 16:09:28 -08:00
thenbrent 41ba6578a0 Move notice templates into /notices/notice.php 2013-11-13 16:09:28 -08:00
thenbrent 2fcd615f88 Update calls to wc_print_messages() function
Part of #4034
2013-11-12 20:59:40 -08:00
thenbrent f3b1679ae5 Introduce new wc_print_notices() function
To replace wc_print_messages() function.

Part of #4034
2013-11-12 20:59:39 -08:00
thenbrent 3707a9d017 Introduce wc_clear_notices() function
To replace wc_clear_messages() & wc_clear_errors() functions

Part of #4034
2013-11-12 20:59:39 -08:00
thenbrent 23cdafccd4 Introduce new wc_add_notice() function
To replace wc_add_message() & wc_add_error() functions.

Part of #4034
2013-11-12 20:59:39 -08:00
thenbrent b3aad6f6fe Introduce new wc_notice_count() function
To replace wc_message_count() & wc_error_count()

Part of #4034
2013-11-12 20:59:39 -08:00
thenbrent c2646a7315 Rename message functions file for new notice API
Part of #4034
2013-11-12 20:59:04 -08:00