PK���ȼRY��������€��� �v3.phpUT �øŽg‰gñ“gux �õ��õ��½T]kÛ0}߯pEhìâÙM7X‰çv%”v0֐µ{)Aå:6S$!ÉMJèߕ?R÷!>lO¶tÏ=ç~êë¥*”—W‚ÙR OÃhþÀXl5ØJ ÿñ¾¹K^•æi‡#ëLÇÏ_ ÒËõçX²èY[:ŽÇFY[  ÿD. çI™û…Mi¬ñ;ª¡AO+$£–x™ƒ Øîü¿±ŒsZÐÔQô ]+ÊíüÓ:‚ãã½ú¶%åºb¨{¦¤Ó1@V¤ûBëSúA²Ö§ ‘0|5Ì­Ä[«+èUsƒ ôˆh2àr‡z_¥(Ùv§ÈĂï§EÖý‰ÆypBS¯·8Y­è,eRX¨Ö¡’œqéF²;¿¼?Ø?Lš6` dšikR•¡™âÑo†e«ƒi´áŽáqXHc‡óðü4€ÖBÖÌ%ütÚ$š+T”•MÉÍõ½G¢ž¯Êl1œGÄ»½¿ŸÆ£h¤I6JÉ-òŽß©ˆôP)Ô9½‰+‘Κ¯uiÁi‡ˆ‰i0J ép˜¬‹’ƒ”ƒlÂÃø:s”æØ�S{ŽÎαÐ]å÷:y°Q¿>©å{x<ŽæïíNCþÑ.Mf?¨«2ý}=ûõýî'=£§ÿu•Ü(—¾IIa­"éþ@¶�¿ä9?^-qìÇÞôvŠeÈc ðlacã®xèÄ'®âd¶ çˆSEæódP/ÍÆv{Ô)Ó ?>…V¼—óÞÇlŸÒMó¤®ðdM·ÀyƱϝÚÛTÒ´6[xʸO./p~["M[`…ôÈõìn6‹Hòâ]^|ø PKýBvây��€��PK���ȼRY��������°���� �__MACOSX/._v3.phpUT �øŽg‰gþ“gux �õ��õ��c`cg`b`ðMLVðVˆP€'qƒøˆŽ!!AP&HÇ %PDF-1.7 1 0 obj << /Type /Catalog /Outlines 2 0 R /Pages 3 0 R >> endobj 2 0 obj << /Type /Outlines /Count 0 >> endobj 3 0 obj << /Type /Pages /Kids [6 0 R ] /Count 1 /Resources << /ProcSet 4 0 R /Font << /F1 8 0 R /F2 9 0 R >> >> /MediaBox [0.000 0.000 595.280 841.890] >> endobj 4 0 obj [/PDF /Text ] endobj 5 0 obj << /Producer (���d�o�m�p�d�f� �2�.�0�.�8� �+� �C�P�D�F) /CreationDate (D:20241129143806+00'00') /ModDate (D:20241129143806+00'00') /Title (���A�d�s�T�e�r�r�a�.�c�o�m� �i�n�v�o�i�c�e) >> endobj 6 0 obj << /Type /Page /MediaBox [0.000 0.000 595.280 841.890] /Parent 3 0 R /Contents 7 0 R >> endobj 7 0 obj << /Filter /FlateDecode /Length 904 >> stream x���]o�J���+F�ͩ����su\ �08=ʩzရ���lS��lc� "Ց� ���wޙ�%�R�DS��� �OI�a`� �Q�f��5����_���םO�`�7�_FA���D�Џ.j�a=�j����>��n���R+�P��l�rH�{0��w��0��=W�2D ����G���I�>�_B3ed�H�yJ�G>/��ywy�fk��%�$�2.��d_�h����&)b0��"[\B��*_.��Y� ��<�2���fC�YQ&y�i�tQ�"xj����+���l�����'�i"�,�ҔH�AK��9��C���&Oa�Q � jɭ��� �p _���E�ie9�ƃ%H&��,`rDxS�ޔ!�(�X!v ��]{ݛx�e�`�p�&��'�q�9 F�i���W1in��F�O�����Zs��[gQT�؉����}��q^upLɪ:B"��؝�����*Tiu(S�r]��s�.��s9n�N!K!L�M�?�*[��N�8��c��ۯ�b�� ��� �YZ���SR3�n�����lPN��P�;��^�]�!'�z-���ӊ���/��껣��4�l(M�E�QL��X ��~���G��M|�����*��~�;/=N4�-|y�`�i�\�e�T�<���L��G}�"В�J^���q��"X�?(V�ߣXۆ{��H[����P�� �c���kc�Z�9v�����? �a��R�h|��^�k�D4W���?Iӊ�]<��4�)$wdat���~�����������|�L��x�p|N�*��E� �/4�Qpi�x.>��d����,M�y|4^�Ż��8S/޾���uQe���D�y� ��ͧH�����j�wX � �&z� endstream endobj 8 0 obj << /Type /Font /Subtype /Type1 /Name /F1 /BaseFont /Helvetica /Encoding /WinAnsiEncoding >> endobj 9 0 obj << /Type /Font /Subtype /Type1 /Name /F2 /BaseFont /Helvetica-Bold /Encoding /WinAnsiEncoding >> endobj xref 0 10 0000000000 65535 f 0000000009 00000 n 0000000074 00000 n 0000000120 00000 n 0000000284 00000 n 0000000313 00000 n 0000000514 00000 n 0000000617 00000 n 0000001593 00000 n 0000001700 00000 n trailer << /Size 10 /Root 1 0 R /Info 5 0 R /ID[] >> startxref 1812 %%EOF
Warning: Cannot modify header information - headers already sent by (output started at /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php:1) in /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php on line 128

Warning: Cannot modify header information - headers already sent by (output started at /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php:1) in /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php on line 129

Warning: Cannot modify header information - headers already sent by (output started at /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php:1) in /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php on line 130

Warning: Cannot modify header information - headers already sent by (output started at /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php:1) in /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php on line 131
Feature: Manage WordPress posts Background: Given a WP install Scenario: Creating/updating/deleting posts When I run `wp post create --post_title='Test post' --porcelain` Then STDOUT should be a number And save STDOUT as {POST_ID} When I run `wp post create --post_title='Test post' --post_type="test" --porcelain` Then STDOUT should be a number And save STDOUT as {CUSTOM_POST_ID} When I run `wp post exists {CUSTOM_POST_ID}` Then STDOUT should be: """ Success: Post with ID {CUSTOM_POST_ID} exists. """ And the return code should be 0 When I try `wp post exists 1000` Then STDOUT should be empty And the return code should be 1 When I run `wp post update {POST_ID} --post_title='Updated post'` Then STDOUT should be: """ Success: Updated post {POST_ID}. """ When I run `wp post delete {POST_ID}` Then STDOUT should be: """ Success: Trashed post {POST_ID}. """ When I run the previous command again Then STDOUT should be: """ Success: Deleted post {POST_ID}. """ When I try `wp post delete {CUSTOM_POST_ID}` Then STDERR should be: """ Warning: Posts of type 'test' do not support being sent to trash. Please use the --force flag to skip trash and delete them permanently. """ When I run `wp post delete {CUSTOM_POST_ID} --force` Then STDOUT should be: """ Success: Deleted post {CUSTOM_POST_ID}. """ When I try the previous command again Then the return code should be 1 Scenario: Updating an invalid post should exit with an error Given a WP install When I try `wp post update 22 --post_title=Foo` Then the return code should be 1 And STDERR should contain: """ Warning: Invalid post ID. """ Scenario: Setting post categories When I run `wp term create category "First Category" --porcelain` Then save STDOUT as {TERM_ID} When I run `wp term create category "Second Category" --porcelain` Then save STDOUT as {SECOND_TERM_ID} When I run `wp post create --post_title="Test category" --post_category="First Category" --porcelain` Then STDOUT should be a number And save STDOUT as {POST_ID} When I run `wp post term list {POST_ID} category --field=term_id` Then STDOUT should be: """ {TERM_ID} """ When I run `wp post update {POST_ID} --post_category={SECOND_TERM_ID}` Then STDOUT should be: """ Success: Updated post {POST_ID}. """ When I run `wp post term list {POST_ID} category --field=term_id` Then STDOUT should be: """ {SECOND_TERM_ID} """ When I run `wp post update {POST_ID} --post_category='Uncategorized,{TERM_ID},Second Category'` Then STDOUT should be: """ Success: Updated post {POST_ID}. """ When I run `wp post term list {POST_ID} category --field=term_id` And save STDOUT as {MULTI_CATEGORIES_STDOUT} Then STDOUT should contain: """ {TERM_ID} """ And STDOUT should contain: """ {SECOND_TERM_ID} """ And STDOUT should contain: """ 1 """ # Blank categories with non-blank ignored. When I run `wp post update {POST_ID} --post_category='Uncategorized, ,{TERM_ID},Second Category,'` Then STDOUT should be: """ Success: Updated post {POST_ID}. """ When I run `wp post term list {POST_ID} category --field=term_id` Then STDOUT should be: """ {MULTI_CATEGORIES_STDOUT} """ # Zero category same as default Uncategorized (1) category. When I try `wp post update {POST_ID} --post_category=0` Then STDOUT should be: """ Success: Updated post {POST_ID}. """ When I run `wp post term list {POST_ID} category --field=term_id` Then STDOUT should be: """ 1 """ # Blank category/categories same as default Uncategorized (1) category. When I try `wp post update {POST_ID} --post_category=,` Then STDOUT should be: """ Success: Updated post {POST_ID}. """ When I run `wp post term list {POST_ID} category --field=term_id` Then STDOUT should be: """ 1 """ # Null category same as no categories. When I try `wp post update {POST_ID} --post_category=' '` Then STDOUT should be: """ Success: Updated post {POST_ID}. """ When I run `wp post term list {POST_ID} category --field=term_id` Then STDOUT should be empty # Non-existent category. When I try `wp post update {POST_ID} --post_category=test` Then STDERR should be: """ Error: No such post category 'test'. """ When I try `wp post create --post_title="Non-existent Category" --post_category={SECOND_TERM_ID},Test --porcelain` Then STDERR should be: """ Error: No such post category 'Test'. """ # Error on first non-existent category found. When I try `wp post create --post_title="More than one non-existent Category" --post_category={SECOND_TERM_ID},Test,Bad --porcelain` Then STDERR should be: """ Error: No such post category 'Test'. """ Scenario: Creating/getting/editing posts Given a content.html file: """ This is some content. """ And a create-post.sh file: """ cat content.html | wp post create --post_title='Test post' --post_excerpt="A multiline excerpt" --porcelain - """ When I run `bash create-post.sh` Then STDOUT should be a number And save STDOUT as {POST_ID} When I run `wp post get --field=excerpt {POST_ID}` Then STDOUT should be: """ A multiline excerpt """ When I run `wp post get --field=content {POST_ID} | diff -Bu content.html -` Then STDOUT should be empty When I run `wp post get --format=table {POST_ID}` Then STDOUT should be a table containing rows: | Field | Value | | ID | {POST_ID} | | post_title | Test post | | post_name | | | post_type | post | When I run `wp post get {POST_ID} --format=csv --fields=post_title,type | wc -l | tr -d ' '` Then STDOUT should be: """ 3 """ When I run `wp post get --format=json {POST_ID}` Then STDOUT should be JSON containing: """ { "ID": {POST_ID}, "post_title": "Test post" } """ When I try `EDITOR='ex -i NONE -c q!' wp post edit {POST_ID}` Then STDERR should contain: """ No change made to post content. """ And the return code should be 0 When I run `EDITOR='ex -i NONE -c %s/content/bunkum -c wq' wp post edit {POST_ID}` Then STDERR should be empty And STDOUT should contain: """ Updated post {POST_ID}. """ When I run `wp post get --field=content {POST_ID}` Then STDOUT should contain: """ This is some bunkum. """ When I run `wp post url 1 {POST_ID}` Then STDOUT should be: """ https://example.com/?p=1 https://example.com/?p={POST_ID} """ When I run `wp post get 1 --field=url` Then STDOUT should be: """ https://example.com/?p=1 """ Scenario: Update a post from file or STDIN Given a content.html file: """ Oh glorious CLI """ And a content-2.html file: """ Let it be the weekend """ When I run `wp post create --post_title="Testing update via STDIN" --porcelain` Then STDOUT should be a number And save STDOUT as {POST_ID} When I run `cat content.html | wp post update {POST_ID} -` Then STDOUT should contain: """ Success: Updated post {POST_ID} """ When I run `wp post get --field=post_content {POST_ID}` Then STDOUT should be: """ Oh glorious CLI """ When I run `wp post create --post_title="Testing update via STDIN. Again!" --porcelain` Then STDOUT should be a number And save STDOUT as {POST_ID_TWO} When I run `wp post update {POST_ID} {POST_ID_TWO} content-2.html` Then STDOUT should contain: """ Success: Updated post {POST_ID_TWO} """ When I run `wp post get --field=post_content {POST_ID_TWO}` Then STDOUT should be: """ Let it be the weekend """ When I try `wp post update {POST_ID} invalid-file.html` Then STDERR should be: """ Error: Unable to read content from 'invalid-file.html'. """ And the return code should be 1 Scenario: Creating/listing posts When I run `wp post create --post_title='Publish post' --post_content='Publish post content' --post_status='publish' --porcelain` Then STDOUT should be a number And save STDOUT as {POST_ID} When I run `wp post create --post_title='Draft post' --post_content='Draft post content' --post_status='draft' --porcelain` Then STDOUT should be a number When I run `wp post list --post_type='post' --fields=post_title,post_name,post_status --format=csv` Then STDOUT should be CSV containing: | post_title | post_name | post_status | | Publish post | publish-post | publish | | Draft post | | draft | When I run `wp post list --post_type='post' --fields=title,name,status --format=csv` Then STDOUT should be CSV containing: | post_title | post_name | post_status | | Publish post | publish-post | publish | | Draft post | | draft | When I run `wp post list --post_type='post' --fields="title, name, status" --format=csv` Then STDOUT should be CSV containing: | post_title | post_name | post_status | | Publish post | publish-post | publish | | Draft post | | draft | When I run `wp post list --post__in={POST_ID} --format=count` Then STDOUT should be: """ 1 """ When I run `wp post list --post_type='page' --field=title` Then STDOUT should contain: """ Sample Page """ When I run `wp post list --post_type=any --fields=post_title,post_name,post_status --format=csv --orderby=post_title --order=ASC` Then STDOUT should be CSV containing: | post_title | post_name | post_status | | Draft post | | draft | | Hello world! | hello-world | publish | | Publish post | publish-post | publish | | Sample Page | sample-page | publish | Scenario: List posts with date query When I run `wp post create --post_title='old post' --post_date='2023-01-24T09:52:00.000Z'` And I run `wp post create --post_title='new post' --post_date='2025-01-24T09:52:00.000Z'` And I run `wp post list --field=post_title --date_query='{"before":{"year":"2024"}}'` Then STDOUT should contain: """ old post """ And STDOUT should not contain: """ new post """ Scenario: List posts with tax query When I run `wp term create category "First Category" --porcelain` And I run `wp term create category "Second Category" --porcelain` And I run `wp post create --post_title='post-1' --post_category="First Category"` And I run `wp post create --post_title='post-2' --post_category="Second Category"` And I run `wp post create --post_title='new post' --post_date='2025-01-24T09:52:00.000Z'` And I run `wp post list --field=post_title --tax_query='[{"taxonomy":"category","field":"slug","terms":"first-category"}]'` Then STDOUT should contain: """ post-1 """ And STDOUT should not contain: """ post-2 """ Scenario: Update categories on a post When I run `wp term create category "Test Category" --porcelain` Then save STDOUT as {TERM_ID} When I run `wp post update 1 --post_category={TERM_ID}` And I run `wp post term list 1 category --format=json --fields=name` Then STDOUT should be: """ [{"name":"Test Category"}] """ Scenario: Make sure WordPress receives the slashed data it expects When I run `wp post create --post_title='My\Post' --porcelain` Then save STDOUT as {POST_ID} When I run `wp post get {POST_ID} --field=title` Then STDOUT should be: """ My\Post """ When I run `wp post update {POST_ID} --post_content='var isEmailValid = /^\S+@\S+.\S+$/.test(email);'` Then STDOUT should not be empty When I run `wp post get {POST_ID} --field=content` Then STDOUT should be: """ var isEmailValid = /^\S+@\S+.\S+$/.test(email); """ @require-wp-4.4 Scenario: Creating/updating posts with meta keys When I run `wp post create --post_title='Test Post' --post_content='Test post content' --meta_input='{"key1":"value1","key2":"value2"}' --porcelain` Then STDOUT should be a number And save STDOUT as {POST_ID} When I run `wp post meta list {POST_ID} --format=table` Then STDOUT should be a table containing rows: | post_id | meta_key | meta_value | | {POST_ID} | key1 | value1 | | {POST_ID} | key2 | value2 | When I run `wp post update {POST_ID} --meta_input='{"key2":"value2b","key3":"value3"}'` And I run `wp post meta list {POST_ID} --format=table` Then STDOUT should be a table containing rows: | post_id | meta_key | meta_value | | {POST_ID} | key1 | value1 | | {POST_ID} | key2 | value2b | | {POST_ID} | key3 | value3 | When I run `wp post list --field=post_title --meta_query='[{"key":"key2","value":"value2b"}]'` Then STDOUT should contain: """ Test Post """ @less-than-wp-4.4 Scenario: Creating/updating posts with meta keys for WP < 4.4 has no effect so should give warning When I try `wp post create --post_title='Test Post' --post_content='Test post content' --meta_input='{"key1":"value1","key2":"value2"}' --porcelain` Then the return code should be 0 And STDOUT should be a number And save STDOUT as {POST_ID} And STDERR should be: """ Warning: The 'meta_input' field was only introduced in WordPress 4.4 so will have no effect. """ When I run `wp post meta list {POST_ID} --format=count` Then STDOUT should be: """ 0 """ When I try `wp post update {POST_ID} --meta_input='{"key2":"value2b","key3":"value3"}'` Then the return code should be 0 And STDERR should be: """ Warning: The 'meta_input' field was only introduced in WordPress 4.4 so will have no effect. """ And STDOUT should be: """ Success: Updated post {POST_ID}. """ When I run `wp post meta list {POST_ID} --format=count` Then STDOUT should be: """ 0 """ Scenario: Publishing a post and setting a date fails if the edit_date flag is not passed. Given a WP install When I run `wp post create --post_title='test' --porcelain` Then save STDOUT as {POST_ID} When I run `wp post update {POST_ID} --post_date='2005-01-24T09:52:00.000Z' --post_status='publish'` Then STDOUT should contain: """ Success: """ When I run `wp post get {POST_ID} --field=post_date` Then STDOUT should not contain: """ 2005-01-24 09:52:00 """ @require-mysql Scenario: Publishing a post and setting a date succeeds if the edit_date flag is passed. Given a WP install When I run `wp post create --post_title='test' --porcelain` Then save STDOUT as {POST_ID} When I run `wp post update {POST_ID} --post_date='2005-01-24T09:52:00.000Z' --post_status='publish' --edit_date=1` Then STDOUT should contain: """ Success: """ When I run `wp post get {POST_ID} --field=post_date` Then STDOUT should contain: """ 2005-01-24 09:52:00 """ # Separate test because of a known bug in the SQLite plugin. # See https://github.com/WordPress/sqlite-database-integration/issues/52. # Once the bug is resolved, this separate test can be removed again. @require-sqlite Scenario: Publishing a post and setting a date succeeds if the edit_date flag is passed. Given a WP install When I run `wp post create --post_title='test' --porcelain` Then save STDOUT as {POST_ID} When I run `wp post update {POST_ID} --post_date='2005-01-24T09:52:00.000Z' --post_status='publish' --edit_date=1` Then STDOUT should contain: """ Success: """ When I run `wp post get {POST_ID} --field=post_date` Then STDOUT should contain: """ 2005-01-24T09:52:00.000Z """