Make WordPress Core

Changeset 2649


Ignore:
Timestamp:
06/18/2005 07:21:37 PM (21 years ago)
Author:
ryan
Message:

Use instead of hardcoding 1. Do we really need a separate default category for XMLRPC posting?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xmlrpc.php

    r2636 r2649  
    471471        function mw_newPost($args) {
    472472
    473           global $wpdb;
     473          global $wpdb, $post_default_category;
    474474
    475475          $blog_ID     = $args[0]; // we will support this in the near future
    … …  
    529529            }
    530530          } else {
    531             $post_category[] = 1;
     531            $post_category[] = $post_default_category;
    532532          }
    533533               
    … …  
    553553        function mw_editPost($args) {
    554554
    555           global $wpdb;
     555          global $wpdb, $post_default_category;
    556556
    557557          $post_ID     = $args[0];
    … …  
    582582            }
    583583          } else {
    584             $post_category[] = 1;
     584            $post_category[] = $post_default_category;
    585585          }
    586586
Note: See TracChangeset for help on using the changeset viewer.