Pastoid

The page you are looking at now is at this URL: http://pastoid.com/a3q

This paste was last updated on July 2, 2009 at 7:51 pm.

Pasted Coderaw

                // Call setslug() only when:
                // * a published post slug is changed
                // * a draft post title is changed
                // * a draft post slug is changed
                if ( $this->status == Post::status( 'published' ) ) {
                        if ( ( isset( $this->newfields['slug'] ) && $this->newfields['slug'] != '' ) && ( $this->fields['slug'] != $this->newfields['slug'] ) ){
                                $this->setslug();
                        }
                } elseif ( $this->status == Post::status( 'draft' ) ) {
                        if ( ( $this->newfields['slug'] == '' ) || ( $this->newfields['title'] != $this->fields['title'] ) ) {
                                $this->setslug();
                        }
                }

Toggle wordwrap

Referring DomainHits
Unknown Referer 127
pastoid.com 18
search.live.com 1
Is this paste spam?
<Hide