Make WordPress Core


Ignore:
Timestamp:
08/16/2008 07:27:34 AM (18 years ago)
Author:
westi
Message:

More phpdoc updates for wp-adming. See #7496 props santosj.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/press-this.php

    r8600 r8656  
    11<?php
     2/**
     3 * Press This Display and Handler.
     4 *
     5 * @package WordPress
     6 * @subpackage Press_This
     7 */
     8
     9/** WordPress Administration Bootstrap */
    210require_once('admin.php');
    311
    412if ( ! current_user_can('publish_posts') ) wp_die( __( 'Cheatin&#8217; uh?' ) );
    513
     14/**
     15 * Replace forward slash with backslash and slash.
     16 *
     17 * @package WordPress
     18 * @subpackage Press_This
     19 * @since unknown
     20 *
     21 * @param string $string
     22 * @return string
     23 */
    624function preg_quote2($string) {
    725        return str_replace('/', '\/', preg_quote($string));
    826}
     27
     28/**
     29 * Convert characters.
     30 *
     31 * @package WordPress
     32 * @subpackage Press_This
     33 * @since unknown
     34 *
     35 * @param string $text
     36 * @return string
     37 */
    938function aposfix($text) {
    1039        $translation_table[chr(34)] = '&quot;';
     
    1342        return preg_replace("/&(?![A-Za-z]{0,4}\w{2,3};|#[0-9]{2,3};)/","&amp;" , strtr($text, $translation_table));
    1443}
     44
     45/**
     46 * Press It form handler.
     47 *
     48 * @package WordPress
     49 * @subpackage Press_This
     50 * @since unknown
     51 *
     52 * @return int Post ID
     53 */
    1554function press_it() {
    1655        // define some basic variables
Note: See TracChangeset for help on using the changeset viewer.