Changeset 11138 for trunk/wp-includes/deprecated.php
- Timestamp:
- 04/30/2009 04:27:17 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/deprecated.php
r11109 r11138 1354 1354 } 1355 1355 1356 /** 1357 * Retrieve the description of the author of the current post. 1358 * 1359 * @since 1.5 1360 * @deprecated 2.8 1361 * @uses $authordata The current author's DB object. 1362 * @return string The author's description. 1363 * @deprecated Use the_author_meta('description') 1364 */ 1365 function get_the_author_description() { 1366 _deprecated_function(__FUNCTION__, '2.8', 'get_the_author_meta(\'description\')' ); 1367 return get_the_author_meta('description'); 1368 } 1369 1370 /** 1371 * Display the description of the author of the current post. 1372 * 1373 * @link http://codex.wordpress.org/Template_Tags/the_author_description 1374 * @since 1.0.0 1375 * @deprecated 2.8 1376 * @deprecated Use the_author_meta('description') 1377 */ 1378 function the_author_description() { 1379 _deprecated_function(__FUNCTION__, '2.8', 'the_author_meta(\'description\')' ); 1380 the_author_meta('description'); 1381 } 1382 1383 /** 1384 * Retrieve the login name of the author of the current post. 1385 * 1386 * @since 1.5 1387 * @deprecated 2.8 1388 * @uses $authordata The current author's DB object. 1389 * @return string The author's login name (username). 1390 * @deprecated Use the_author_meta('login') 1391 */ 1392 function get_the_author_login() { 1393 _deprecated_function(__FUNCTION__, '2.8', 'get_the_author_meta(\'login\')' ); 1394 return get_the_author_meta('login'); 1395 } 1396 1397 /** 1398 * Display the login name of the author of the current post. 1399 * 1400 * @link http://codex.wordpress.org/Template_Tags/the_author_login 1401 * @since 0.71 1402 * @deprecated 2.8 1403 * @deprecated Use the_author_meta('login') 1404 */ 1405 function the_author_login() { 1406 _deprecated_function(__FUNCTION__, '2.8', 'the_author_meta(\'login\')' ); 1407 the_author_meta('login'); 1408 } 1409 1410 /** 1411 * Retrieve the first name of the author of the current post. 1412 * 1413 * @since 1.5 1414 * @deprecated 2.8 1415 * @uses $authordata The current author's DB object. 1416 * @return string The author's first name. 1417 * @deprecated Use the_author_meta('first_name') 1418 */ 1419 function get_the_author_firstname() { 1420 _deprecated_function(__FUNCTION__, '2.8', 'get_the_author_meta(\'first_name\')' ); 1421 return get_the_author_meta('first_name'); 1422 } 1423 1424 /** 1425 * Display the first name of the author of the current post. 1426 * 1427 * @link http://codex.wordpress.org/Template_Tags/the_author_firstname 1428 * @since 0.71 1429 * @deprecated 2.8 1430 * @deprecated Use the_author_meta('first_name') 1431 */ 1432 function the_author_firstname() { 1433 _deprecated_function(__FUNCTION__, '2.8', 'the_author_meta(\'first_name\')' ); 1434 the_author_meta('first_name'); 1435 } 1436 1437 /** 1438 * Retrieve the last name of the author of the current post. 1439 * 1440 * @since 1.5 1441 * @deprecated 2.8 1442 * @uses $authordata The current author's DB object. 1443 * @return string The author's last name. 1444 * @deprecated Use the_author_meta('last_name') 1445 */ 1446 function get_the_author_lastname() { 1447 _deprecated_function(__FUNCTION__, '2.8', 'get_the_author_meta(\'last_name\')' ); 1448 return get_the_author_meta('last_name'); 1449 } 1450 1451 /** 1452 * Display the last name of the author of the current post. 1453 * 1454 * @link http://codex.wordpress.org/Template_Tags/the_author_lastname 1455 * @since 0.71 1456 * @deprecated 2.8 1457 * @deprecated Use the_author_meta('last_name') 1458 */ 1459 function the_author_lastname() { 1460 _deprecated_function(__FUNCTION__, '2.8', 'the_author_meta(\'last_name\')' ); 1461 the_author_meta('last_name'); 1462 } 1463 1464 /** 1465 * Retrieve the nickname of the author of the current post. 1466 * 1467 * @since 1.5 1468 * @deprecated 2.8 1469 * @uses $authordata The current author's DB object. 1470 * @return string The author's nickname. 1471 * @deprecated Use the_author_meta('nickname') 1472 */ 1473 function get_the_author_nickname() { 1474 _deprecated_function(__FUNCTION__, '2.8', 'get_the_author_meta(\'nickname\')' ); 1475 return get_the_author_meta('nickname'); 1476 } 1477 1478 /** 1479 * Display the nickname of the author of the current post. 1480 * 1481 * @link http://codex.wordpress.org/Template_Tags/the_author_nickname 1482 * @since 0.71 1483 * @deprecated 2.8 1484 * @deprecated Use the_author_meta('nickname') 1485 */ 1486 function the_author_nickname() { 1487 _deprecated_function(__FUNCTION__, '2.8', 'the_author_meta(\'nickname\')' ); 1488 the_author_meta('nickname'); 1489 } 1490 1491 /** 1492 * Retrieve the email of the author of the current post. 1493 * 1494 * @since 1.5 1495 * @deprecated 2.8 1496 * @uses $authordata The current author's DB object. 1497 * @return string The author's username. 1498 * @deprecated Use the_author_meta('email') 1499 */ 1500 function get_the_author_email() { 1501 _deprecated_function(__FUNCTION__, '2.8', 'get_the_author_meta(\'email\')' ); 1502 return get_the_author_meta('email'); 1503 } 1504 1505 /** 1506 * Display the email of the author of the current post. 1507 * 1508 * @link http://codex.wordpress.org/Template_Tags/the_author_email 1509 * @since 0.71 1510 * @deprecated 2.8 1511 * @deprecated Use the_author_meta('email') 1512 */ 1513 function the_author_email() { 1514 _deprecated_function(__FUNCTION__, '2.8', 'the_author_meta(\'email\')' ); 1515 the_author_meta('email'); 1516 } 1517 1518 /** 1519 * Retrieve the ICQ number of the author of the current post. 1520 * 1521 * @since 1.5 1522 * @deprecated 2.8 1523 * @uses $authordata The current author's DB object. 1524 * @return string The author's ICQ number. 1525 * @deprecated Use the_author_meta('icq') 1526 */ 1527 function get_the_author_icq() { 1528 _deprecated_function(__FUNCTION__, '2.8', 'get_the_author_meta(\'icq\')' ); 1529 return get_the_author_meta('icq'); 1530 } 1531 1532 /** 1533 * Display the ICQ number of the author of the current post. 1534 * 1535 * @link http://codex.wordpress.org/Template_Tags/the_author_icq 1536 * @since 0.71 1537 * @deprecated 2.8 1538 * @see get_the_author_icq() 1539 * @deprecated Use the_author_meta('icq') 1540 */ 1541 function the_author_icq() { 1542 _deprecated_function(__FUNCTION__, '2.8', 'the_author_meta(\'icq\')' ); 1543 the_author_meta('icq'); 1544 } 1545 1546 /** 1547 * Retrieve the Yahoo! IM name of the author of the current post. 1548 * 1549 * @since 1.5 1550 * @deprecated 2.8 1551 * @uses $authordata The current author's DB object. 1552 * @return string The author's Yahoo! IM name. 1553 * @deprecated Use the_author_meta('yim') 1554 */ 1555 function get_the_author_yim() { 1556 _deprecated_function(__FUNCTION__, '2.8', 'get_the_author_meta(\'yim\')' ); 1557 return get_the_author_meta('yim'); 1558 } 1559 1560 /** 1561 * Display the Yahoo! IM name of the author of the current post. 1562 * 1563 * @link http://codex.wordpress.org/Template_Tags/the_author_yim 1564 * @since 0.71 1565 * @deprecated 2.8 1566 * @deprecated Use the_author_meta('yim') 1567 */ 1568 function the_author_yim() { 1569 _deprecated_function(__FUNCTION__, '2.8', 'the_author_meta(\'yim\')' ); 1570 the_author_meta('yim'); 1571 } 1572 1573 /** 1574 * Retrieve the MSN address of the author of the current post. 1575 * 1576 * @since 1.5 1577 * @deprecated 2.8 1578 * @uses $authordata The current author's DB object. 1579 * @return string The author's MSN address. 1580 * @deprecated Use the_author_meta('msn') 1581 */ 1582 function get_the_author_msn() { 1583 _deprecated_function(__FUNCTION__, '2.8', 'get_the_author_meta(\'msn\')' ); 1584 return get_the_author_meta('msn'); 1585 } 1586 1587 /** 1588 * Display the MSN address of the author of the current post. 1589 * 1590 * @link http://codex.wordpress.org/Template_Tags/the_author_msn 1591 * @since 0.71 1592 * @deprecated 2.8 1593 * @see get_the_author_msn() 1594 * @deprecated Use the_author_meta('msn') 1595 */ 1596 function the_author_msn() { 1597 _deprecated_function(__FUNCTION__, '2.8', 'the_author_meta(\'msn\')' ); 1598 the_author_meta('msn'); 1599 } 1600 1601 /** 1602 * Retrieve the specified author's preferred display name. 1603 * 1604 * @since 1.0.0 1605 * @deprecated 2.8 1606 * @param int $auth_id The ID of the author. 1607 * @return string The author's display name. 1608 * @deprecated Use the_author_meta('display_name') 1609 */ 1610 function get_author_name( $auth_id = false ) { 1611 _deprecated_function(__FUNCTION__, '2.8', 'get_the_author_meta(\'display_name\')' ); 1612 return get_the_author_meta('display_name', $auth_id); 1613 } 1614 1615 /** 1616 * Retrieve the URL to the home page of the author of the current post. 1617 * 1618 * @since 1.5 1619 * @deprecated 2.8 1620 * @uses $authordata The current author's DB object. 1621 * @return string The URL to the author's page. 1622 */ 1623 function get_the_author_url() { 1624 _deprecated_function(__FUNCTION__, '2.8', 'get_the_author_meta(\'url\')' ); 1625 return get_the_author_meta('url'); 1626 } 1627 1628 /** 1629 * Display the URL to the home page of the author of the current post. 1630 * 1631 * @link http://codex.wordpress.org/Template_Tags/the_author_url 1632 * @since 0.71 1633 * @deprecated 2.8 1634 */ 1635 function the_author_url() { 1636 _deprecated_function(__FUNCTION__, '2.8', 'the_author_meta(\'url\')' ); 1637 the_author_meta('url'); 1638 } 1639 1640 /** 1641 * Retrieve the ID of the author of the current post. 1642 * 1643 * @since 1.5 1644 * @deprecated 2.8 1645 * @return int The author's ID. 1646 */ 1647 function get_the_author_ID() { 1648 _deprecated_function(__FUNCTION__, '2.8', 'get_the_author_meta(\'ID\')' ); 1649 return get_the_author_meta('ID'); 1650 } 1651 1652 /** 1653 * Display the ID of the author of the current post. 1654 * 1655 * @link http://codex.wordpress.org/Template_Tags/the_author_ID 1656 * @since 0.71 1657 * @deprecated 2.8 1658 * @uses get_the_author_ID() 1659 */ 1660 function the_author_ID() { 1661 _deprecated_function(__FUNCTION__, '2.8', 'the_author_meta(\'ID\')' ); 1662 the_author_meta('ID'); 1663 } 1664 1356 1665 ?>
Note: See TracChangeset
for help on using the changeset viewer.