Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #20046, comment 5


Ignore:
Timestamp:
05/22/2014 08:35:50 PM (12 years ago)
Author:
ericlewis
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #20046, comment 5

    initial v1  
    55{{{
    66#!php
     7<?php
    78add_action( 'init', function() {
    89        register_taxonomy_for_object_type( 'category', 'attachment' );
     
    1415{{{
    1516#!php
     17<?php
    1618wp_insert_attachment(
    1719        array( 'post_status' => 'publish',