[wp-trac] [WordPress Trac] #44175: Privacy Policy Guide Text Incorrect Regarding Setting of Test Cookie

WordPress Trac noreply at wordpress.org
Tue Jan 22 23:53:29 UTC 2019


#44175: Privacy Policy Guide Text Incorrect Regarding Setting of Test Cookie
-------------------------------------+-----------------------------
 Reporter:  mechter                  |       Owner:  (none)
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Future Release
Component:  Privacy                  |     Version:  4.9.6
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-refresh  |     Focuses:
-------------------------------------+-----------------------------

Comment (by garrett-eclipse):

 Hi @subrataemfluence

 I attempted to apply the patch to trunk using `grunt patch:44175` and got
 the following error;
 {{{
 Running "patch:44175" (patch) task
 can't find file to patch at input line 5
 Perhaps you used the wrong -p or --strip option?
 The text leading up to this was:
 --------------------------
 |diff --git a/var/www/wp-projects/wp-trunk/trunk/src/wp-
 admin/includes/misc.php b/misc.php
 |index 1d86158..a419cf3 100755
 |--- a/var/www/wp-projects/wp-trunk/trunk/src/wp-admin/includes/misc.php
 |+++ b/misc.php
 --------------------------
 }}}

 This looks to be occurring due to the patch having been made at a
 directory above the project `a/var/www/wp-projects/wp-trunk/`. You'll
 probably just have to reapply the change and re-create the patch from the
 root of your WP checkout.

 Checkout - https://make.wordpress.org/core/handbook/tutorials/working-
 with-patches/

 And I use this to install WP directory -
 https://make.wordpress.org/core/handbook/tutorials/installing-wordpress-
 locally/from-svn/

 My personal workflow that works nicely is;
 1. Create new folder, navigate into it.
 2. Checkout the repo - `svn co https://develop.svn.wordpress.org/trunk/ .`
 3. Install the modules - `npm install`
 4. Make my changes.
 5. Create a patch from the root of the new folder - `svn diff src >
 #####.diff`
 6. Test the patch by building - `grunt build`, then setting up database
 and site.
 7. When happy upload patch - `grunt upload_patch:#####`

 I hope that helps, find me on Slack if you get stuck.

 Thanks for the patch

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


More information about the wp-trac mailing list