[wp-trac] [WordPress Trac] #37119: Taxonomies is not adding to post unless user is not loggeg in

WordPress Trac noreply at wordpress.org
Fri Jun 17 09:45:37 UTC 2016


#37119: Taxonomies is not adding to post unless user is not loggeg in
--------------------------+-----------------------------
 Reporter:  dangerd512    |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Taxonomy      |    Version:  4.5.2
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Using external script to insert posts (grabber)
 {{{#!php
 <?php
 include('../wp-load.php');
 include('../wp-admin/includes/taxonomy.php');
 wp_insert_post(array(
                 'post_title' => $t['name'],
                 'post_type' => 'catalog',
                 'post_status' => 'publish',
                 'post_content' => $t['sdescr'],
                 'tax_input' => array(
                         'manufacturer' => $t['manufacteur'],
                         'cat_category' => $_GET['catid']
                 )
         ));
 }}}
 Posts inserted with taxonomies (manufacturer, cat_category) if user who
 access script url is logged in, otherwise post will be inserted without
 taxonomies...

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37119>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list